Root Zanli
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
o5t6x7pgljbm
/
public_html
/
admin
/
storage
/
logs
/
Filename :
laravel.log.bak-20240503
back
Copy
[2024-04-04 09:30:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 09:30:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`group_id` = ? and `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 09:49:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 09:49:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 09:49:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-07' and `tasks`.`due_by` > '2024-04-04' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-04 09:49:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-04' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-04 09:50:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 09:50:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 09:50:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 09:50:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 09:50:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 09:50:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 09:50:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 09:50:06] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-04 09:50:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 09:50:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 09:50:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 09:50:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 09:50:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 09:50:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 09:51:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 09:51:00] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-04 09:51:00] local.DEBUG: task is not assigned to user, but it is visible, so creating new assignment [2024-04-04 09:51:00] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kartik.g.dweb@gmail.com","name":"hirax"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello hirax,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Learn Newton's third law<\\/li>\\n <li><strong>Assigned By:<\\/strong> Kartik Gosiya<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-04 09:51:00] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.d7c9a0e0-f268-11ee-9de0-52540064429e.18ea884d1ee","object":"email"} [2024-04-04 09:51:00] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"gosiya.kartik@gmail.com","name":"Kartik Gosiya"}}],"subject":"Task Claimed","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Pending Approval<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Pending Approval<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Kartik Gosiya,<\\/p>\\n <p>Your child has completed a task and it is now pending your approval:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Learn Newton's third law<\\/li>\\n <li><strong>Assigned To:<\\/strong> hirax<\\/li>\\n <\\/ul>\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-04 09:51:01] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.d827ed81-f268-11ee-a9f9-525400d6cd4f.18ea884d455","object":"email"} [2024-04-04 09:51:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 09:51:01] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-04 09:51:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-07' and `tasks`.`due_by` > '2024-04-04' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-04 09:51:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-04' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-04 09:51:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 09:51:15] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-04 09:51:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 09:51:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 09:51:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 09:51:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 09:51:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 09:51:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 09:51:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 09:51:21] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-04 09:51:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 09:51:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 09:51:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 09:51:31] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-04 09:51:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 09:51:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 09:51:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 09:51:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 09:51:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 09:51:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 09:51:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 09:51:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 09:51:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 09:51:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 09:51:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 09:51:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 09:52:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 09:52:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 09:52:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 09:52:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 09:56:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 09:56:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 09:56:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 09:56:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 09:56:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 09:56:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 09:56:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 09:56:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 09:59:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-07' and `tasks`.`due_by` > '2024-04-04' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-04 09:59:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-04' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-04 09:59:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 09:59:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 09:59:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 09:59:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 09:59:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 09:59:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 09:59:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 09:59:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 09:59:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 09:59:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:00:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:00:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:00:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 10:00:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:00:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:00:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:00:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 10:00:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:00:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:00:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:00:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:00:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:00:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 10:00:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 10:01:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 10:01:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 10:01:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:01:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:01:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 10:01:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:01:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 10:01:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 10:01:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 10:01:35] local.DEBUG: task visible_to: ZIPCODE_PARENT_AND_CHILD [2024-04-04 10:01:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 10:01:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 10:01:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 10:01:41] local.DEBUG: task visible_to: ZIPCODE_PARENT_AND_CHILD [2024-04-04 10:01:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 10:01:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 10:01:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-07' and `tasks`.`due_by` > '2024-04-04' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-04 10:01:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-04' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-04 10:02:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:02:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:02:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 10:02:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:02:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-07' and `tasks`.`due_by` > '2024-04-04' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-04 10:02:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-04' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-04 10:03:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-07' and `tasks`.`due_by` > '2024-04-04' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-04 10:03:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-04' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-04 10:03:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-07' and `tasks`.`due_by` > '2024-04-04' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-04 10:03:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-04' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-04 10:04:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:04:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:04:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:04:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:04:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:04:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:05:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:05:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:05:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:05:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:05:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:05:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:05:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:05:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:05:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:05:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:05:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:05:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:05:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:05:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:05:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:05:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:05:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:05:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:08:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:08:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:08:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 10:08:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:09:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:09:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:09:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:09:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:09:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:09:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:09:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:09:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:09:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 10:09:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:09:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:09:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:09:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:09:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:09:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:09:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:09:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 10:09:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:09:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:09:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:09:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:09:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:09:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:10:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:10:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:10:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 10:10:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:10:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 10:10:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 10:10:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:10:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:10:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 10:10:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:10:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 10:10:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 10:11:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:11:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:11:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 10:11:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:11:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 10:11:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 10:11:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 10:11:16] local.DEBUG: task visible_to: ZIPCODE_PARENT_AND_CHILD [2024-04-04 10:11:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 10:11:39] local.DEBUG: task visible_to: ZIPCODE_PARENT_AND_CHILD [2024-04-04 10:11:39] local.DEBUG: task is not assigned to user, but it is visible, so creating new assignment [2024-04-04 10:11:39] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kartik.g.dweb@gmail.com","name":"hirax"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello hirax,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Understand the air pressure concept<\\/li>\\n <li><strong>Assigned By:<\\/strong> Kartik Gosiya<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-04 10:11:39] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.ba6ca990-f26b-11ee-9151-5254000b1a0e.18ea897baa9","object":"email"} [2024-04-04 10:11:40] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"gosiya.kartik@gmail.com","name":"Kartik Gosiya"}}],"subject":"Task Claimed","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Pending Approval<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Pending Approval<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Kartik Gosiya,<\\/p>\\n <p>Your child has completed a task and it is now pending your approval:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Understand the air pressure concept<\\/li>\\n <li><strong>Assigned To:<\\/strong> hirax<\\/li>\\n <\\/ul>\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-04 10:11:40] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.bacf6300-f26b-11ee-b186-525400f92481.18ea897bd30","object":"email"} [2024-04-04 10:11:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 10:11:41] local.DEBUG: task visible_to: ZIPCODE_PARENT_AND_CHILD [2024-04-04 10:11:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:11:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:11:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:11:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:11:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:11:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:12:12] local.DEBUG: Review allowed to UserId: 87 for ClaimId:16, Reason: User is the owner of the group, and claim is also in the same group [2024-04-04 10:12:12] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kartik.g.dweb@gmail.com","name":"hirax"}}],"subject":"Task Approved","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Approved<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Approved<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello hirax,<\\/p>\\n <p>Congratulations! The task assigned to you has been approved by your parent:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Learn Newton's third law<\\/li>\\n <\\/ul>\\n <p>Keep up the good work!<\\/p>\\n <p>If you have any questions or concerns, please contact your parent or our support team.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-04 10:12:12] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.cde56750-f26b-11ee-a834-525400fa05f6.18ea8983a45","object":"email"} [2024-04-04 10:12:15] local.DEBUG: Review allowed to UserId: 87 for ClaimId:17, Reason: User is the owner of the group, and claim is also in the same group [2024-04-04 10:12:15] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kartik.g.dweb@gmail.com","name":"hirax"}}],"subject":"Task Approved","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Approved<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Approved<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello hirax,<\\/p>\\n <p>Congratulations! The task assigned to you has been approved by your parent:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Understand the air pressure concept<\\/li>\\n <\\/ul>\\n <p>Keep up the good work!<\\/p>\\n <p>If you have any questions or concerns, please contact your parent or our support team.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-04 10:12:15] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.cf9e61f1-f26b-11ee-9151-5254000b1a0e.18ea898458f","object":"email"} [2024-04-04 10:12:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:12:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:12:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 10:12:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:12:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 10:12:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 10:12:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 10:12:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 10:12:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:12:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:12:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 10:12:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:12:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:12:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:12:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 10:12:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:13:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:13:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:13:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 10:13:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:13:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:13:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:13:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 10:13:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:14:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:14:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:14:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 10:14:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:14:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:14:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:14:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 10:14:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:14:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:14:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:14:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:14:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:14:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:14:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:17:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:17:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:17:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 10:17:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:18:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:18:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:18:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 10:18:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:21:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:21:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:21:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 10:21:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:22:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:22:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:22:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 10:22:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:25:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:25:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:25:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 10:25:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:25:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-07' and `tasks`.`due_by` > '2024-04-04' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-04 10:25:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-04' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-04 10:25:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:25:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:25:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 10:25:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:26:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:26:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:26:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:26:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:26:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:26:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:26:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-07' and `tasks`.`due_by` > '2024-04-04' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 10:26:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 10:26:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 10:26:26] local.DEBUG: Review allowed to UserId: 87 for ClaimId:16, Reason: User is the owner of the group, and claim is also in the same group [2024-04-04 10:26:26] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kartik.g.dweb@gmail.com","name":"hirax"}}],"subject":"Task Approved","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Approved<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Approved<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello hirax,<\\/p>\\n <p>Congratulations! The task assigned to you has been approved by your parent:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Learn Newton's third law<\\/li>\\n <\\/ul>\\n <p>Keep up the good work!<\\/p>\\n <p>If you have any questions or concerns, please contact your parent or our support team.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-04 10:26:26] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.cb11c300-f26d-11ee-a9f9-525400d6cd4f.18ea8a54330","object":"email"} [2024-04-04 10:26:29] local.DEBUG: Review allowed to UserId: 87 for ClaimId:17, Reason: User is the owner of the group, and claim is also in the same group [2024-04-04 10:26:29] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kartik.g.dweb@gmail.com","name":"hirax"}}],"subject":"Task Approved","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Approved<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Approved<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello hirax,<\\/p>\\n <p>Congratulations! The task assigned to you has been approved by your parent:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Understand the air pressure concept<\\/li>\\n <\\/ul>\\n <p>Keep up the good work!<\\/p>\\n <p>If you have any questions or concerns, please contact your parent or our support team.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-04 10:26:29] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.cce6aa10-f26d-11ee-9de0-52540064429e.18ea8a54f31","object":"email"} [2024-04-04 10:26:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:26:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:26:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 10:26:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:26:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 10:26:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 10:28:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-07' and `tasks`.`due_by` > '2024-04-04' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-04 10:28:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-04' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-04 10:28:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:28:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:28:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 10:28:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:32:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 10:32:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 10:32:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:32:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:32:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 10:32:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:32:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-07' and `tasks`.`due_by` > '2024-04-04' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-04 10:32:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-04' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-04 10:32:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:32:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:32:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 10:32:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:32:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 10:32:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 10:32:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 10:32:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 10:32:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:32:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:32:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 10:32:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:37:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 10:37:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 10:37:42] local.DEBUG: Current Balance: 0 [2024-04-04 10:38:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 10:38:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 10:38:21] local.DEBUG: Current Balance: App\Models\SPWallet Object ( [connection:protected] => mysql [table:protected] => sp_wallet [primaryKey:protected] => sp_wallet_id [keyType:protected] => int [incrementing] => 1 [with:protected] => Array ( ) [withCount:protected] => Array ( ) [preventsLazyLoading] => [perPage:protected] => 15 [exists] => 1 [wasRecentlyCreated] => [escapeWhenCastingToString:protected] => [attributes:protected] => Array ( [sp_wallet_id] => 81 [user_id] => 88 [wallet_name] => SP Wallet [wallet_uid] => 1363ADD4B3 [created_at] => 2023-12-23 00:56:16 [updated_at] => 2023-12-23 00:56:16 [deleted_at] => [balance] => 0 ) [original:protected] => Array ( [sp_wallet_id] => 81 [user_id] => 88 [wallet_name] => SP Wallet [wallet_uid] => 1363ADD4B3 [created_at] => 2023-12-23 00:56:16 [updated_at] => 2023-12-23 00:56:16 [deleted_at] => ) [changes:protected] => Array ( ) [casts:protected] => Array ( [deleted_at] => datetime ) [classCastCache:protected] => Array ( ) [attributeCastCache:protected] => Array ( ) [dates:protected] => Array ( ) [dateFormat:protected] => [appends:protected] => Array ( ) [dispatchesEvents:protected] => Array ( ) [observables:protected] => Array ( ) [relations:protected] => Array ( ) [touches:protected] => Array ( ) [timestamps] => 1 [hidden:protected] => Array ( [0] => deleted_at ) [visible:protected] => Array ( ) [fillable:protected] => Array ( [0] => user_id [1] => wallet_name [2] => wallet_uid [3] => created_at [4] => updated_at [5] => deleted_at ) [guarded:protected] => Array ( [0] => * ) [forceDeleting:protected] => ) [2024-04-04 10:39:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:39:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:39:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 10:39:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:39:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:39:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:39:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 10:39:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:40:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:40:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:40:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 10:40:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:43:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 10:43:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 10:43:32] local.DEBUG: Current Balance: 0 [2024-04-04 10:43:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:43:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:43:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 10:43:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:44:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:44:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:44:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:44:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:44:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:44:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:44:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:44:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:44:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 10:44:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:44:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:44:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:44:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 10:44:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:44:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:44:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:44:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 10:44:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:44:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:44:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:44:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 10:44:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:45:07] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"johnved@gmail.com","name":"johnved@gmail.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello johnved@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: <\\/li>\\n <li>Invited By: sachin<\\/li>\\n <li>Role: Child<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"https:\\/\\/play.google.com\\/store\\/apps\\/details?id=com.coins.college\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"https:\\/\\/apps.apple.com\\/us\\/app\\/coins-for-college\\/id6469045127\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-04 10:45:07] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.670bce70-f270-11ee-a9f9-525400d6cd4f.18ea8b65cd7","object":"email"} [2024-04-04 10:45:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:45:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:45:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 10:45:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:45:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 10:45:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 10:46:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 10:46:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 10:46:49] local.DEBUG: Wallet Transaction: Array ( [sp_wallet_id] => 81 [user_id] => 88 [wallet_name] => SP Wallet [wallet_uid] => 1363ADD4B3 [created_at] => 2023-12-23T00:56:16.000000Z [updated_at] => 2023-12-23T00:56:16.000000Z [balance] => 0 ) [2024-04-04 10:46:49] local.DEBUG: Current Balance: 0 [2024-04-04 10:47:39] local.DEBUG: Wallet Transaction: Array ( [sp_wallet_id] => 81 [user_id] => 88 [wallet_name] => SP Wallet [wallet_uid] => 1363ADD4B3 [created_at] => 2023-12-23T00:56:16.000000Z [updated_at] => 2023-12-23T00:56:16.000000Z [balance] => 0 ) [2024-04-04 10:48:04] local.DEBUG: Wallet Transaction: Array ( [sp_wallet_id] => 203 [user_id] => 210 [wallet_name] => SP Wallet [wallet_uid] => 5ABABF2DEB [created_at] => 2024-04-01T05:51:16.000000Z [updated_at] => 2024-04-01T05:51:16.000000Z [balance] => 0 ) [2024-04-04 10:48:14] local.DEBUG: Wallet Transaction: Array ( [sp_wallet_id] => 203 [user_id] => 210 [wallet_name] => SP Wallet [wallet_uid] => 5ABABF2DEB [created_at] => 2024-04-01T05:51:16.000000Z [updated_at] => 2024-04-01T05:51:16.000000Z [balance] => 0 ) [2024-04-04 10:48:15] local.DEBUG: Wallet Transaction: Array ( [sp_wallet_id] => 203 [user_id] => 210 [wallet_name] => SP Wallet [wallet_uid] => 5ABABF2DEB [created_at] => 2024-04-01T05:51:16.000000Z [updated_at] => 2024-04-01T05:51:16.000000Z [balance] => 0 ) [2024-04-04 10:48:22] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"johnved@gmail.com","name":"johnved@gmail.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello johnved@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: <\\/li>\\n <li>Invited By: sachin<\\/li>\\n <li>Role: Parent<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"https:\\/\\/play.google.com\\/store\\/apps\\/details?id=com.coins.college\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"https:\\/\\/apps.apple.com\\/us\\/app\\/coins-for-college\\/id6469045127\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-04 10:48:22] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.db31b170-f270-11ee-b186-525400f92481.18ea8b95607","object":"email"} [2024-04-04 10:48:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:48:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:48:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 10:48:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:49:28] local.DEBUG: Wallet Transaction: Array ( [sp_wallet_id] => 23 [user_id] => 30 [wallet_name] => SP Wallet [wallet_uid] => 74DFF7E867 [created_at] => 2023-10-28T17:59:14.000000Z [updated_at] => 2023-10-28T05:29:14.000000Z [balance] => 0 ) [2024-04-04 10:51:02] local.DEBUG: Wallet Transaction: Array ( [sp_wallet_id] => 23 [user_id] => 30 [wallet_name] => SP Wallet [wallet_uid] => 74DFF7E867 [created_at] => 2023-10-28T17:59:14.000000Z [updated_at] => 2023-10-28T05:29:14.000000Z [balance] => 0 ) [2024-04-04 10:51:38] local.DEBUG: Wallet Transaction: Array ( [sp_wallet_id] => 23 [user_id] => 30 [wallet_name] => SP Wallet [wallet_uid] => 74DFF7E867 [created_at] => 2023-10-28T17:59:14.000000Z [updated_at] => 2023-10-28T05:29:14.000000Z [balance] => 0 ) [2024-04-04 10:53:05] local.DEBUG: Wallet Transaction: Array ( [sp_wallet_id] => 23 [user_id] => 30 [wallet_name] => SP Wallet [wallet_uid] => 74DFF7E867 [created_at] => 2023-10-28T17:59:14.000000Z [updated_at] => 2023-10-28T05:29:14.000000Z [balance] => 0 ) [2024-04-04 10:54:41] local.DEBUG: Wallet Transaction: Array ( [sp_wallet_id] => 203 [user_id] => 210 [wallet_name] => SP Wallet [wallet_uid] => 5ABABF2DEB [created_at] => 2024-04-01T05:51:16.000000Z [updated_at] => 2024-04-01T05:51:16.000000Z [balance] => 0 ) [2024-04-04 10:54:41] local.DEBUG: Wallet Transaction: Array ( [sp_wallet_id] => 203 [user_id] => 210 [wallet_name] => SP Wallet [wallet_uid] => 5ABABF2DEB [created_at] => 2024-04-01T05:51:16.000000Z [updated_at] => 2024-04-01T05:51:16.000000Z [balance] => 0 ) [2024-04-04 10:54:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:54:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:54:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 10:54:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:54:42] local.DEBUG: Wallet Transaction: Array ( [sp_wallet_id] => 203 [user_id] => 210 [wallet_name] => SP Wallet [wallet_uid] => 5ABABF2DEB [created_at] => 2024-04-01T05:51:16.000000Z [updated_at] => 2024-04-01T05:51:16.000000Z [balance] => 0 ) [2024-04-04 10:54:42] local.DEBUG: Wallet Transaction: Array ( [sp_wallet_id] => 203 [user_id] => 210 [wallet_name] => SP Wallet [wallet_uid] => 5ABABF2DEB [created_at] => 2024-04-01T05:51:16.000000Z [updated_at] => 2024-04-01T05:51:16.000000Z [balance] => 0 ) [2024-04-04 10:54:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:54:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:54:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 10:54:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:54:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:54:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:54:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 10:54:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:54:49] local.DEBUG: Wallet Transaction: Array ( [sp_wallet_id] => 203 [user_id] => 210 [wallet_name] => SP Wallet [wallet_uid] => 5ABABF2DEB [created_at] => 2024-04-01T05:51:16.000000Z [updated_at] => 2024-04-01T05:51:16.000000Z [balance] => 0 ) [2024-04-04 10:54:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 10:54:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:54:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 10:54:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 10:54:51] local.DEBUG: Wallet Transaction: Array ( [sp_wallet_id] => 203 [user_id] => 210 [wallet_name] => SP Wallet [wallet_uid] => 5ABABF2DEB [created_at] => 2024-04-01T05:51:16.000000Z [updated_at] => 2024-04-01T05:51:16.000000Z [balance] => 0 ) [2024-04-04 11:01:09] local.DEBUG: Wallet Transaction: Array ( [sp_wallet_id] => 81 [user_id] => 88 [wallet_name] => SP Wallet [wallet_uid] => 1363ADD4B3 [created_at] => 2023-12-23T00:56:16.000000Z [updated_at] => 2023-12-23T00:56:16.000000Z [balance] => 0 ) [2024-04-04 11:01:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 11:01:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 11:01:17] local.DEBUG: Wallet Transaction: Array ( [sp_wallet_id] => 81 [user_id] => 88 [wallet_name] => SP Wallet [wallet_uid] => 1363ADD4B3 [created_at] => 2023-12-23T00:56:16.000000Z [updated_at] => 2023-12-23T00:56:16.000000Z [balance] => 0 ) [2024-04-04 11:01:17] local.DEBUG: Current Balance: 0 [2024-04-04 11:01:26] local.DEBUG: Wallet Transaction: Array ( [sp_wallet_id] => 81 [user_id] => 88 [wallet_name] => SP Wallet [wallet_uid] => 1363ADD4B3 [created_at] => 2023-12-23T00:56:16.000000Z [updated_at] => 2023-12-23T00:56:16.000000Z [balance] => 0 ) [2024-04-04 11:01:26] local.DEBUG: Wallet Transaction: Array ( [sp_wallet_id] => 81 [user_id] => 88 [wallet_name] => SP Wallet [wallet_uid] => 1363ADD4B3 [created_at] => 2023-12-23T00:56:16.000000Z [updated_at] => 2023-12-23T00:56:16.000000Z [balance] => 0 ) [2024-04-04 11:01:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:01:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:01:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:01:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:01:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:01:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:01:57] local.DEBUG: Review allowed to UserId: 87 for ClaimId:17, Reason: User is the owner of the group, and claim is also in the same group [2024-04-04 11:01:57] local.DEBUG: Wallet Transaction: Array ( [sp_wallet_id] => 81 [user_id] => 88 [wallet_name] => SP Wallet [wallet_uid] => 1363ADD4B3 [created_at] => 2023-12-23T00:56:16.000000Z [updated_at] => 2023-12-23T00:56:16.000000Z [balance] => 0 ) [2024-04-04 11:01:57] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kartik.g.dweb@gmail.com","name":"hirax"}}],"subject":"Task Approved","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Approved<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Approved<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello hirax,<\\/p>\\n <p>Congratulations! The task assigned to you has been approved by your parent:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Understand the air pressure concept<\\/li>\\n <\\/ul>\\n <p>Keep up the good work!<\\/p>\\n <p>If you have any questions or concerns, please contact your parent or our support team.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-04 11:01:58] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.c16c7c50-f272-11ee-a94c-525400d4bb1c.18ea8c5c895","object":"email"} [2024-04-04 11:02:11] local.DEBUG: Review allowed to UserId: 87 for ClaimId:16, Reason: User is the owner of the group, and claim is also in the same group [2024-04-04 11:02:11] local.DEBUG: Wallet Transaction: Array ( [sp_wallet_id] => 81 [user_id] => 88 [wallet_name] => SP Wallet [wallet_uid] => 1363ADD4B3 [created_at] => 2023-12-23T00:56:16.000000Z [updated_at] => 2023-12-23T00:56:16.000000Z [balance] => 0 ) [2024-04-04 11:02:11] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kartik.g.dweb@gmail.com","name":"hirax"}}],"subject":"Task Approved","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Approved<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Approved<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello hirax,<\\/p>\\n <p>Congratulations! The task assigned to you has been approved by your parent:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Learn Newton's third law<\\/li>\\n <\\/ul>\\n <p>Keep up the good work!<\\/p>\\n <p>If you have any questions or concerns, please contact your parent or our support team.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-04 11:02:11] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.c9638480-f272-11ee-b145-5254004d4100.18ea8c5fcc8","object":"email"} [2024-04-04 11:02:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 11:02:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 11:02:14] local.DEBUG: Wallet Transaction: Array ( [sp_wallet_id] => 81 [user_id] => 88 [wallet_name] => SP Wallet [wallet_uid] => 1363ADD4B3 [created_at] => 2023-12-23T00:56:16.000000Z [updated_at] => 2023-12-23T00:56:16.000000Z [balance] => 0 ) [2024-04-04 11:02:14] local.DEBUG: Current Balance: 100 [2024-04-04 11:02:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 11:02:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 11:02:20] local.DEBUG: Wallet Transaction: Array ( [sp_wallet_id] => 81 [user_id] => 88 [wallet_name] => SP Wallet [wallet_uid] => 1363ADD4B3 [created_at] => 2023-12-23T00:56:16.000000Z [updated_at] => 2023-12-23T00:56:16.000000Z [balance] => 0 ) [2024-04-04 11:02:20] local.DEBUG: Current Balance: 100 [2024-04-04 11:03:37] local.DEBUG: Wallet Transaction: Array ( [sp_wallet_id] => 80 [user_id] => 87 [wallet_name] => SP Wallet [wallet_uid] => EB5C96E699 [created_at] => 2023-12-23T00:51:12.000000Z [updated_at] => 2023-12-23T00:51:12.000000Z [balance] => 0 ) [2024-04-04 11:03:39] local.DEBUG: Wallet Transaction: Array ( [sp_wallet_id] => 80 [user_id] => 87 [wallet_name] => SP Wallet [wallet_uid] => EB5C96E699 [created_at] => 2023-12-23T00:51:12.000000Z [updated_at] => 2023-12-23T00:51:12.000000Z [balance] => 0 ) [2024-04-04 11:03:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:03:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:03:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 11:03:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:03:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 11:03:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 11:03:55] local.DEBUG: Wallet Transaction: Array ( [sp_wallet_id] => 81 [user_id] => 88 [wallet_name] => SP Wallet [wallet_uid] => 1363ADD4B3 [created_at] => 2023-12-23T00:56:16.000000Z [updated_at] => 2023-12-23T00:56:16.000000Z [balance] => 0 ) [2024-04-04 11:03:55] local.DEBUG: Current Balance: 100 [2024-04-04 11:16:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 11:16:08] local.DEBUG: Current Balance: 100 [2024-04-04 11:16:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:16:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:16:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 11:16:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:16:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 11:16:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 11:16:11] local.DEBUG: Current Balance: 50 [2024-04-04 11:16:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:16:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:16:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 11:16:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:16:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:16:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:16:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 11:16:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:20:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:20:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:20:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:20:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:20:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:20:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:21:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:21:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:21:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:21:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:21:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:21:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:21:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:21:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:21:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 11:21:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:21:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-07' and `tasks`.`due_by` > '2024-04-04' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-04 11:21:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-04' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-04 11:25:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:25:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:25:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:25:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:25:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:25:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:25:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:25:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:25:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:25:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:25:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:25:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:29:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:29:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:29:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 11:29:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:29:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:29:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:29:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 11:29:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:31:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:31:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:31:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 11:31:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:31:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:31:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:31:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 11:31:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:31:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:31:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:31:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 11:31:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:32:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-07' and `tasks`.`due_by` > '2024-04-04' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-04 11:32:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-04' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-04 11:32:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 11:32:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 11:32:21] local.DEBUG: task is not assigned to user, and it is not visible as well [2024-04-04 11:32:21] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"gosiya.kartik@gmail.com","name":"Kartik Gosiya"}}],"subject":"Task Claimed","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Pending Approval<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Pending Approval<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Kartik Gosiya,<\\/p>\\n <p>Your child has completed a task and it is now pending your approval:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> BCA Spoken English<\\/li>\\n <li><strong>Assigned To:<\\/strong> hirax<\\/li>\\n <\\/ul>\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-04 11:32:21] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.00628270-f277-11ee-aa7b-525400ae9113.18ea8e19c17","object":"email"} [2024-04-04 11:32:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 11:32:22] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(266): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError() #1 /home/o5t6x7pgljbm/public_html/admin/app/Models/AllClaim.php(73): Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}() #2 /home/o5t6x7pgljbm/public_html/admin/app/V2/Resources/TaskResource.php(98): App\Models\AllClaim->isCurrentClaim() #3 /home/o5t6x7pgljbm/public_html/admin/app/V2/Resources/TaskResource.php(83): App\V2\Resources\TaskResource->getTaskDetailsForChild() #4 /home/o5t6x7pgljbm/public_html/admin/app/V2/Resources/TaskResource.php(70): App\V2\Resources\TaskResource->getUserSpecificDetails() #5 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ChildController.php(139): App\V2\Resources\TaskResource->fromTasktoArray() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ChildController->get_task_by_id() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #44 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #45 {main} [2024-04-04 11:32:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-07' and `tasks`.`due_by` > '2024-04-04' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-04 11:32:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-04' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-04 11:32:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 11:32:32] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(266): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError() #1 /home/o5t6x7pgljbm/public_html/admin/app/Models/AllClaim.php(73): Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}() #2 /home/o5t6x7pgljbm/public_html/admin/app/V2/Resources/TaskResource.php(98): App\Models\AllClaim->isCurrentClaim() #3 /home/o5t6x7pgljbm/public_html/admin/app/V2/Resources/TaskResource.php(83): App\V2\Resources\TaskResource->getTaskDetailsForChild() #4 /home/o5t6x7pgljbm/public_html/admin/app/V2/Resources/TaskResource.php(70): App\V2\Resources\TaskResource->getUserSpecificDetails() #5 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ChildController.php(139): App\V2\Resources\TaskResource->fromTasktoArray() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ChildController->get_task_by_id() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #44 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #45 {main} [2024-04-04 11:32:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:32:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:32:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:32:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:32:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:32:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:32:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-07' and `tasks`.`due_by` > '2024-04-04' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-04 11:32:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-04' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-04 11:32:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 11:32:43] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(266): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError() #1 /home/o5t6x7pgljbm/public_html/admin/app/Models/AllClaim.php(73): Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}() #2 /home/o5t6x7pgljbm/public_html/admin/app/V2/Resources/TaskResource.php(98): App\Models\AllClaim->isCurrentClaim() #3 /home/o5t6x7pgljbm/public_html/admin/app/V2/Resources/TaskResource.php(83): App\V2\Resources\TaskResource->getTaskDetailsForChild() #4 /home/o5t6x7pgljbm/public_html/admin/app/V2/Resources/TaskResource.php(70): App\V2\Resources\TaskResource->getUserSpecificDetails() #5 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ChildController.php(139): App\V2\Resources\TaskResource->fromTasktoArray() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ChildController->get_task_by_id() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #44 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #45 {main} [2024-04-04 11:33:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-07' and `tasks`.`due_by` > '2024-04-04' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-04 11:33:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-04' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-04 11:33:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 11:33:52] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(266): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError() #1 /home/o5t6x7pgljbm/public_html/admin/app/Models/AllClaim.php(73): Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}() #2 /home/o5t6x7pgljbm/public_html/admin/app/V2/Resources/TaskResource.php(98): App\Models\AllClaim->isCurrentClaim() #3 /home/o5t6x7pgljbm/public_html/admin/app/V2/Resources/TaskResource.php(83): App\V2\Resources\TaskResource->getTaskDetailsForChild() #4 /home/o5t6x7pgljbm/public_html/admin/app/V2/Resources/TaskResource.php(70): App\V2\Resources\TaskResource->getUserSpecificDetails() #5 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ChildController.php(139): App\V2\Resources\TaskResource->fromTasktoArray() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ChildController->get_task_by_id() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #44 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #45 {main} [2024-04-04 11:36:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:36:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:36:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:36:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:36:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:36:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:37:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:37:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:37:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:37:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:37:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:37:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:37:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:37:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:37:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:37:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:37:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:37:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:38:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:38:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:38:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:38:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:38:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:38:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:39:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:39:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:39:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:39:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:39:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:39:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:40:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:40:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:40:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:40:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:40:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:40:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:41:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:41:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:41:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:41:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:41:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:41:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:42:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-07' and `tasks`.`due_by` > '2024-04-04' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-04 11:42:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-04' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-04 11:42:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 11:42:35] local.DEBUG: task visible_to: [2024-04-04 11:44:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:44:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:44:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:44:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:44:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:44:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:45:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:45:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:45:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:45:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:45:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:45:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:47:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:47:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:47:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:47:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:47:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:47:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:47:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:47:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:47:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 11:47:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:47:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-07' and `tasks`.`due_by` > '2024-04-04' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-04 11:47:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-04' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-04 11:47:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 11:47:38] local.DEBUG: task visible_to: [2024-04-04 11:47:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:47:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:47:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 11:47:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:49:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:49:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:49:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 11:49:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:49:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:49:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:49:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 11:49:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:52:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:52:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:52:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:52:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:52:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:52:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:58:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:58:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:58:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:58:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 11:58:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 11:58:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:02:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:02:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:02:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:02:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:02:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:02:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:03:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:03:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:03:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:03:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:03:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:03:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:04:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:04:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:04:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:04:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:04:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:04:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:06:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:06:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:06:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:06:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:06:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:06:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:06:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:06:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:06:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:06:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:06:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:06:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:07:05] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"johnved@gmail.com","name":"johnved@gmail.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello johnved@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"Rakesh personal group\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: Rakesh personal group<\\/li>\\n <li>Invited By: sachin<\\/li>\\n <li>Role: Child<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"https:\\/\\/play.google.com\\/store\\/apps\\/details?id=com.coins.college\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"https:\\/\\/apps.apple.com\\/us\\/app\\/coins-for-college\\/id6469045127\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-04 12:07:06] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.daea4730-f27b-11ee-b186-525400f92481.18ea9016b23","object":"email"} [2024-04-04 12:07:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:07:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:07:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:07:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:07:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:07:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:10:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:10:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:10:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 12:10:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:10:58] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"johnved@gmail.com","name":"johnved@gmail.com"}}],"subject":"Group Invitation Update - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation Update - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation Update<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello johnved@gmail.com,<\\/p>\\n <p>Your membership of the group with name \\"Rakesh personal group\\" has been updated.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: Rakesh personal group<\\/li>\\n <li>Updated Role in Group: Parent<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"https:\\/\\/play.google.com\\/store\\/apps\\/details?id=com.coins.college\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"https:\\/\\/apps.apple.com\\/us\\/app\\/coins-for-college\\/id6469045127\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-04 12:10:59] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.65c4b200-f27c-11ee-a9f9-525400d6cd4f.18ea904f920","object":"email"} [2024-04-04 12:12:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:12:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:12:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 12:12:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:12:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:12:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:12:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 12:12:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:19:29] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"johnved@gmail.com","name":"johnved@gmail.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello johnved@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: <\\/li>\\n <li>Invited By: sachin<\\/li>\\n <li>Role: Parent<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"https:\\/\\/play.google.com\\/store\\/apps\\/details?id=com.coins.college\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"https:\\/\\/apps.apple.com\\/us\\/app\\/coins-for-college\\/id6469045127\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-04 12:19:29] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.95da2781-f27d-11ee-9151-5254000b1a0e.18ea90cc1f8","object":"email"} [2024-04-04 12:19:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:19:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:19:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 12:19:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:19:56] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"johnved@gmail.com","name":"johnved@gmail.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello johnved@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: <\\/li>\\n <li>Invited By: sachin<\\/li>\\n <li>Role: Child<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"https:\\/\\/play.google.com\\/store\\/apps\\/details?id=com.coins.college\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"https:\\/\\/apps.apple.com\\/us\\/app\\/coins-for-college\\/id6469045127\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-04 12:19:56] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.a6132390-f27d-11ee-aa7b-525400ae9113.18ea90d2c49","object":"email"} [2024-04-04 12:20:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:20:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:20:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 12:20:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:20:12] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"johnved@gmail.com","name":"johnved@gmail.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello johnved@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: <\\/li>\\n <li>Invited By: sachin<\\/li>\\n <li>Role: Parent<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"https:\\/\\/play.google.com\\/store\\/apps\\/details?id=com.coins.college\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"https:\\/\\/apps.apple.com\\/us\\/app\\/coins-for-college\\/id6469045127\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-04 12:20:13] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.aff69270-f27d-11ee-833a-525400103106.18ea90d6d17","object":"email"} [2024-04-04 12:20:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:20:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:20:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 12:20:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:22:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:22:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:22:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:22:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:22:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:22:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:23:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:23:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:23:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:23:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:23:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:23:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:23:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:23:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:23:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 12:23:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:23:36] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kartik.g.dweb@gmail.com","name":"kartik.g.dweb@gmail.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello kartik.g.dweb@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"testgroup100\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: testgroup100<\\/li>\\n <li>Invited By: Kartik Gosiya<\\/li>\\n <li>Role: Child<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"https:\\/\\/play.google.com\\/store\\/apps\\/details?id=com.coins.college\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"https:\\/\\/apps.apple.com\\/us\\/app\\/coins-for-college\\/id6469045127\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-04 12:23:37] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.297a0e10-f27e-11ee-a9f9-525400d6cd4f.18ea9108971","object":"email"} [2024-04-04 12:23:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 12:23:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 12:23:39] local.DEBUG: Current Balance: 50 [2024-04-04 12:25:48] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kartik.g.dweb@gmail.com","name":"kartik.g.dweb@gmail.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello kartik.g.dweb@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: <\\/li>\\n <li>Invited By: Kartik Gosiya<\\/li>\\n <li>Role: Parent<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"https:\\/\\/play.google.com\\/store\\/apps\\/details?id=com.coins.college\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"https:\\/\\/apps.apple.com\\/us\\/app\\/coins-for-college\\/id6469045127\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-04 12:25:49] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.7820f150-f27e-11ee-9151-5254000b1a0e.18ea9128ce5","object":"email"} [2024-04-04 12:26:44] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kartik.g.dweb@gmail.com","name":"kartik.g.dweb@gmail.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello kartik.g.dweb@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: <\\/li>\\n <li>Invited By: Kartik Gosiya<\\/li>\\n <li>Role: Child<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"https:\\/\\/play.google.com\\/store\\/apps\\/details?id=com.coins.college\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"https:\\/\\/apps.apple.com\\/us\\/app\\/coins-for-college\\/id6469045127\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-04 12:26:45] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.99a67c50-f27e-11ee-aa7b-525400ae9113.18ea9136895","object":"email"} [2024-04-04 12:27:19] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kartik.g.dweb@gmail.com","name":"kartik.g.dweb@gmail.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello kartik.g.dweb@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: <\\/li>\\n <li>Invited By: Kartik Gosiya<\\/li>\\n <li>Role: Parent<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"https:\\/\\/play.google.com\\/store\\/apps\\/details?id=com.coins.college\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"https:\\/\\/apps.apple.com\\/us\\/app\\/coins-for-college\\/id6469045127\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-04 12:27:19] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.adf7e6d0-f27e-11ee-aa7b-525400ae9113.18ea913edbd","object":"email"} [2024-04-04 12:28:49] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kartik.g.dweb@gmail.com","name":"kartik.g.dweb@gmail.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello kartik.g.dweb@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: <\\/li>\\n <li>Invited By: Kartik Gosiya<\\/li>\\n <li>Role: Child<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"https:\\/\\/play.google.com\\/store\\/apps\\/details?id=com.coins.college\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"https:\\/\\/apps.apple.com\\/us\\/app\\/coins-for-college\\/id6469045127\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-04 12:28:49] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.e3aa3d50-f27e-11ee-9151-5254000b1a0e.18ea9154da5","object":"email"} [2024-04-04 12:33:41] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kartik.g.dweb@gmail.com","name":"kartik.g.dweb@gmail.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello kartik.g.dweb@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: <\\/li>\\n <li>Invited By: Kartik Gosiya<\\/li>\\n <li>Role: Parent<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"https:\\/\\/play.google.com\\/store\\/apps\\/details?id=com.coins.college\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"https:\\/\\/apps.apple.com\\/us\\/app\\/coins-for-college\\/id6469045127\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-04 12:33:41] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.91f70f00-f27f-11ee-a9f9-525400d6cd4f.18ea919c3f0","object":"email"} [2024-04-04 12:34:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:34:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:34:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 12:34:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:34:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:34:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:34:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-04 12:34:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:34:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:34:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:34:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-04 12:34:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:34:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:34:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:34:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-04 12:34:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:34:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:34:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:34:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-04 12:34:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:34:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:34:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:34:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-04 12:34:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:34:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:34:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:34:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 12:34:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:34:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-04 12:35:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:35:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:35:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 12:35:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:36:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:36:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:36:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:36:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:36:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:36:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:39:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:39:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:39:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:39:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:39:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:39:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:39:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 12:39:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 12:39:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-04 12:39:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 12:39:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 12:39:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 12:39:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 12:39:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:39:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:39:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 12:39:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:39:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 12:39:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 12:39:44] local.DEBUG: Current Balance: 50 [2024-04-04 12:48:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:48:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:48:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 12:48:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:48:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:48:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:48:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 12:48:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:48:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-07' and `tasks`.`due_by` > '2024-04-04' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-04 12:48:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-04' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-04 12:48:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:48:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:48:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 12:48:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:49:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:49:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:49:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 12:49:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:49:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 12:49:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:49:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 12:49:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 12:49:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-07' and `tasks`.`due_by` > '2024-04-04' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-04 12:49:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-04' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-04 13:02:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:02:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:02:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 13:02:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:02:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 13:02:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 13:02:33] local.DEBUG: Current Balance: 50 [2024-04-04 13:05:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:05:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:05:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 13:05:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:06:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:06:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:06:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 13:06:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:06:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 13:06:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 13:06:33] local.DEBUG: Current Balance: 50 [2024-04-04 13:13:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:13:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:13:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:13:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:13:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:13:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:13:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:13:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:13:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 13:13:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:13:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-07' and `tasks`.`due_by` > '2024-04-04' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-04 13:13:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-04' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-04 13:13:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:13:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:13:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 13:13:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:13:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:13:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:13:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:13:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:13:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:13:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:14:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:14:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:14:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:14:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:14:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:14:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:14:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-07' and `tasks`.`due_by` > '2024-04-04' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 13:14:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 13:14:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 13:15:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 13:15:32] local.DEBUG: Current Balance: 50 [2024-04-04 13:15:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:15:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:15:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 13:15:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:16:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:16:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:16:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 13:16:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:17:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:17:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:17:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:17:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:17:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:17:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:17:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:17:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:17:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:17:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:17:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:17:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:18:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:18:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:18:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:18:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:18:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:18:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:18:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:18:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:18:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:18:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:18:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:18:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:19:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:19:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:19:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 13:19:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:19:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:19:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:19:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:19:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:19:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:19:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:19:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:19:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:19:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:19:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:19:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:19:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:19:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:19:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:19:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 13:19:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:20:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:20:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:20:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:20:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:20:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:20:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:20:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:20:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:20:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-04 13:20:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:20:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:20:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:20:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:20:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:20:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:20:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:20:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:20:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:20:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:20:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:20:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:20:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:21:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:21:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:21:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:21:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:21:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:21:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:22:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:22:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:22:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:22:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:22:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:22:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:25:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:25:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:25:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:25:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:25:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:25:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:26:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:26:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:26:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:26:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:26:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:26:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:27:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:27:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:27:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:27:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:27:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:27:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:27:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:27:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:27:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:27:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:27:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:27:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:28:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:28:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:28:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:28:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:28:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:28:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:29:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:29:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:29:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:29:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:29:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:29:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:41:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:41:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:41:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:41:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:41:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:41:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:42:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 13:42:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 13:42:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-04 13:42:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 13:42:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 13:42:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:42:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:42:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:42:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:42:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:42:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:42:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 13:42:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 13:42:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-04 13:42:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 13:42:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 13:42:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:42:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:42:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:42:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:42:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:42:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:43:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:43:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:43:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:43:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:43:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:43:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:43:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 13:43:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 13:43:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:43:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:43:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:43:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:43:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:43:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:43:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:43:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:43:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:43:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:43:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:43:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:43:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 13:43:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 13:43:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-07' and `tasks`.`due_by` > '2024-04-04' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 13:43:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 13:43:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 13:43:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-07' and `tasks`.`due_by` > '2024-04-04' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 13:43:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 13:43:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 13:43:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 13:43:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-07' and `tasks`.`due_by` > '2024-04-04' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 13:43:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 13:43:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 13:44:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:44:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:44:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:44:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:44:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:44:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:44:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-07' and `tasks`.`due_by` > '2024-04-04' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 13:44:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 13:44:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 13:44:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:44:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:44:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:44:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:44:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:44:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:44:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 13:44:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-07' and `tasks`.`due_by` > '2024-04-04' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 13:44:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 13:44:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 13:44:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:44:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:44:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:44:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:44:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:44:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:44:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-07' and `tasks`.`due_by` > '2024-04-04' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 13:44:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 13:44:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 13:44:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 13:45:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 13:45:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-07' and `tasks`.`due_by` > '2024-04-04' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 13:45:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 13:45:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 13:45:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-07' and `tasks`.`due_by` > '2024-04-04' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 13:45:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 13:45:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-04 13:45:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:45:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:45:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:45:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:45:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:45:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:45:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:45:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:45:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:45:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:45:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:45:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:45:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 13:45:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 13:45:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-04 13:45:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-04 13:45:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-04 13:45:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:45:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:45:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:45:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:45:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:45:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:45:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:45:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:45:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:45:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:45:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:45:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:46:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:46:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:46:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:46:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-04 13:46:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-03' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-04 13:46:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 04:54:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 04:54:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 04:54:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 04:54:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 04:54:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 04:54:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 04:55:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 04:55:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 04:55:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 04:55:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 04:55:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 04:55:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 04:55:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 04:55:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 04:55:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:47:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:47:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:47:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:47:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:47:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:47:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:49:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:49:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:49:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:49:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:49:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:49:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:49:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:49:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:49:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:49:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:49:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:49:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:49:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:49:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:49:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:49:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:49:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:49:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:49:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:49:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:49:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:49:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:49:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:49:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:49:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-05 06:49:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:49:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:49:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-05 06:49:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:49:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:49:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:49:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:49:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:49:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:49:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:49:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:49:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 06:49:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-05 06:49:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:49:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:49:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:49:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:49:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:49:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:49:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:50:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:50:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 06:50:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-05 06:50:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:50:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:50:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:50:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:50:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:50:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:50:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:50:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:50:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:50:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:50:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:50:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:50:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:50:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 06:50:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:50:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:50:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:50:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:50:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:50:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:50:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:50:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 06:50:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:50:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:50:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:50:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:50:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:50:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:51:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:51:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:51:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:51:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:51:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:51:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:51:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:51:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 06:51:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:51:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:51:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:51:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:51:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:51:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:51:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:51:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:51:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:51:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:51:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:51:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:51:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:51:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:51:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:51:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:51:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 06:51:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-05 06:51:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:51:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 06:51:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:51:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:51:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:51:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:51:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:51:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:51:48] local.DEBUG: Product Image Details: Array ( [product_id] => 206 [image_name] => 10081377021712299908.png ) [2024-04-05 06:51:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 06:51:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:51:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 06:51:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:51:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:51:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:51:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:51:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:51:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:51:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:51:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:51:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:52:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:52:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 06:52:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:52:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:52:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:52:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:52:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:52:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:52:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:52:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:52:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:52:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:52:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:52:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:52:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:52:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:52:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:52:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:52:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:52:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:52:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:52:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:52:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-05 06:52:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:52:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:52:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 06:52:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:52:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:52:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:52:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:52:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:52:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:52:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:52:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-05 06:52:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:52:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:52:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:52:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:52:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:52:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:52:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:53:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:53:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:53:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:53:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:53:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:53:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:54:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:54:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:54:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:54:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:54:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:54:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:54:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:54:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:54:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:54:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:54:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:54:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:54:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:54:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:54:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:54:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:54:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-05 06:54:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:54:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-05 06:54:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:54:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:54:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-05 06:54:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:54:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:54:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:54:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:54:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:54:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:54:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:54:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:54:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:54:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:54:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:54:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:54:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-05 06:55:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-05 06:55:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:55:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:55:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-05 06:55:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-05 06:55:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-05 06:55:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:55:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-05 06:55:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:55:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:55:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:55:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:55:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 06:55:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:55:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:55:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:55:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:55:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 06:55:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:55:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 06:55:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:55:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:55:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-05 06:55:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:55:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:56:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 06:56:06] local.DEBUG: Current Balance: 0 [2024-04-05 06:56:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:56:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 06:56:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-05 06:56:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:56:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 06:56:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:10] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ChildController.php(131): App\V2\Services\TaskService->getTasksById() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ChildController->get_task_by_id() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #39 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #40 {main} [2024-04-05 06:56:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:56:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-05 06:56:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:56:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 06:56:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:56:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 06:56:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-05 06:56:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-05 06:56:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-05 06:56:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-05 06:56:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:56:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 06:56:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-05 06:56:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-05' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-05 06:56:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:56:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-05 06:56:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-05 06:56:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-05 06:56:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:56:25] local.DEBUG: Product Image Details: Array ( [product_id] => 201 [image_name] => 17666028911712300185.png ) [2024-04-05 06:56:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:56:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 06:56:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:56:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 06:56:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-05 06:56:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-05' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-05 06:56:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-05 06:56:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-05' or `tasks`.`due_by` is null) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-05 06:56:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:56:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-05 06:56:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-05 06:56:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-05 06:56:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-05 06:56:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:56:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:56:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 06:56:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-05 06:56:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:56:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 06:56:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:56:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:56:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:56:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:56:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:56:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 06:56:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:56:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:56:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:56:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:57:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:57:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:57:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:57:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:57:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 06:57:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:57:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-05 06:57:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:57:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 06:57:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:57:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:57:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:57:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:57:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:57:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:57:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:57:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:57:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:57:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-05 06:57:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:57:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:57:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:57:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:57:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:57:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:57:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:57:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:57:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:57:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:57:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:57:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:57:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:57:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:57:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 06:57:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:57:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:57:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:57:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:57:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:57:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:57:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:57:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:57:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:57:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:57:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:57:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:57:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-05 06:57:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:57:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:57:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:57:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 06:57:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:57:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-05 06:57:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 06:58:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:58:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:58:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:58:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:58:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:58:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:58:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:58:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:58:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:58:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:58:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:58:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:58:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:58:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:58:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:58:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:58:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:58:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:58:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:58:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:58:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:58:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:58:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:58:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:58:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:58:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:58:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:58:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 06:58:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:58:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:58:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:58:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:58:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:58:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:58:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:58:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:58:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:58:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:58:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:58:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:58:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:58:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:58:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:58:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:58:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:58:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:58:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:58:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:58:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:58:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:58:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:58:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:58:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:58:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:58:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:58:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:58:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:58:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 06:58:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:58:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:58:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:58:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:58:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:58:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:58:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:58:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:58:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-05 06:58:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:58:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:58:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:58:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:58:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:58:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:58:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:58:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:58:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:58:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:58:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:59:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:59:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 06:59:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-05 06:59:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 06:59:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 06:59:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:59:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:59:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:59:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:59:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 06:59:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 06:59:22] local.DEBUG: Review Not allowed for UserId: 210 for ClaimId:12, Reason: User is not the owner of the group [2024-04-05 06:59:24] local.DEBUG: Review Not allowed for UserId: 210 for ClaimId:12, Reason: User is not the owner of the group [2024-04-05 06:59:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:59:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:59:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 06:59:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 07:00:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 07:00:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 07:00:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 07:00:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 07:00:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 07:00:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 07:00:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 07:00:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 07:00:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 07:00:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 07:00:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 07:00:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 07:00:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 07:00:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 07:00:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 07:00:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 07:00:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 07:00:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 07:00:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 07:00:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 07:00:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 07:00:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 07:00:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 07:00:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 07:01:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 07:01:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 07:01:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 07:01:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 07:01:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 07:01:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 07:01:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 07:01:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 07:01:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 07:01:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 07:01:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 07:01:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 07:01:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 07:01:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 07:01:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 07:01:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 07:01:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 07:01:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 07:01:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 07:01:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 07:02:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 07:02:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 07:02:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-04-05 07:05:02] local.ERROR: Error while clonning tasks and associated rewards, rolling back the transaction. Message: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'created_by' in 'field list' (SQL: insert into `task_assigned` (`user_id`, `task_id`, `group_id`, `status`, `task_details_for_approval`, `deleted_at`, `created_by`, `updated_at`, `created_at`) values (16, 242, 18, PENDING, ?, ?, ?, 2024-04-05 07:05:02, 2024-04-05 07:05:02)) [2024-04-05 07:05:02] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(546): Illuminate\Database\Connection->run() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(498): Illuminate\Database\Connection->statement() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3322): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1869): Illuminate\Database\Query\Builder->insertGetId() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1330): Illuminate\Database\Eloquent\Builder->__call() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1295): Illuminate\Database\Eloquent\Model->insertAndSetId() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert() #9 /home/o5t6x7pgljbm/public_html/admin/app/Models/TaskAssigned.php(82): Illuminate\Database\Eloquent\Model->save() #10 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(466): App\Models\TaskAssigned->cloneTaskAssignee() #11 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(410): App\V2\Services\TaskService->cloneTaskAndReward() #12 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2CronController.php(37): App\V2\Services\TaskService->cloneTasksAndRewards() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2CronController->create_repeate_tasks() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #44 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #45 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #46 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #47 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #48 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #49 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #50 {main} [2024-04-05 08:25:10] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kibida2975@dacgu.com","name":"Miza Mariyam"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Miza Mariyam,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">84610<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-05 08:25:11] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.04da5b70-f326-11ee-9de0-52540064429e.18ead5c9aa7","object":"email"} [2024-04-05 08:49:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 08:49:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 08:49:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-05 08:49:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 08:50:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 08:50:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 08:50:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-05 08:50:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 08:51:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 08:51:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 08:51:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-05 08:51:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 08:51:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-05 08:51:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-05' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-05 08:53:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 08:53:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 08:53:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-05 08:53:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 08:53:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-05 08:53:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-05' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-05 08:54:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 08:54:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 08:54:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-05 08:54:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 08:55:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 08:55:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 08:55:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-05 08:55:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 08:59:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 08:59:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 08:59:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-05 08:59:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 09:42:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 09:42:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 09:42:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-05 09:42:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 09:42:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 09:42:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 09:42:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-05 09:42:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 09:43:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 09:43:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 09:43:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-05 09:43:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 09:43:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 09:43:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 09:43:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-05 09:43:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 09:44:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 09:44:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 09:44:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-05 09:44:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 09:45:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 09:45:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 09:45:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-05 09:45:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 09:52:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 09:52:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 09:52:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-05 09:52:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 10:31:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 10:31:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 10:31:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 10:31:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 10:31:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 10:31:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 10:32:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 10:32:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 10:32:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 10:32:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 10:32:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 10:32:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 10:32:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 10:32:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 10:32:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 10:32:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 10:32:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 10:32:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 10:32:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 10:32:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 10:32:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 10:32:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 10:32:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 10:32:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 10:34:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 10:34:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 10:34:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 10:34:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 10:34:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 10:34:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 10:34:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 10:34:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 10:34:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 10:34:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 10:34:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 10:34:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 10:35:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 10:35:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 10:35:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 10:35:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 10:35:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 10:35:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 10:35:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 10:35:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 10:35:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 10:35:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 10:35:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 10:35:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 10:38:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 10:38:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 10:38:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 10:38:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 10:38:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 10:38:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 10:38:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 10:38:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 10:38:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 10:38:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 10:38:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 10:38:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 10:38:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 10:38:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 10:39:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 10:39:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 10:39:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-05 10:39:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 10:39:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 10:39:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 10:39:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 10:39:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 10:39:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 10:40:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 10:40:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 10:40:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 10:40:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 10:40:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 10:40:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 10:40:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-05 10:41:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 10:41:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 10:41:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 10:41:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 10:41:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 10:41:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 10:41:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 10:41:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 10:41:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 10:41:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 10:41:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 10:42:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 10:42:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 10:42:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 10:42:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 10:42:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 10:42:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 10:42:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 10:42:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 10:42:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 10:43:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 10:43:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 10:43:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 10:43:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 10:43:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-05 10:43:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 10:43:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-05 10:43:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 10:43:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 10:43:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 10:43:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 10:43:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-05 10:44:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 10:44:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-05 10:44:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 10:44:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 10:44:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 10:44:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 10:44:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-05 10:44:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 10:44:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 10:44:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 10:44:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 10:44:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-05 10:44:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 10:44:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 10:44:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 10:44:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 10:44:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-05 10:44:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 10:44:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 10:44:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 11:03:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 11:03:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-05 12:00:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:00:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:00:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:00:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:00:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:00:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:00:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:00:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:00:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:12:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:12:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:12:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:12:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:18:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:18:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:18:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:23:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:23:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:23:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:23:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:23:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:23:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-05 12:24:31] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"jerry@gmail.com","name":"Jerry Smith"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Jerry Smith,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> mynew one<\\/li>\\n <li><strong>Assigned By:<\\/strong> sachin<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-05 12:24:32] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.74a91650-f347-11ee-a94c-525400d4bb1c.18eae37bc35","object":"email"} [2024-04-05 12:24:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:24:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-05 12:24:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:24:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:24:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:25:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:25:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:25:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:25:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:25:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:25:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:27:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:27:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:27:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:27:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:27:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:27:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:27:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:27:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:27:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:27:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:27:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:27:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:30:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:30:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:30:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:30:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:30:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:30:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:30:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 12:30:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:30:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:30:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:30:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:30:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:30:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:30:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-05 12:30:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:30:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:30:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:30:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:30:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:30:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:30:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:30:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:30:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:30:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:30:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:30:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:30:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 12:30:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 12:31:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:31:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:31:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:31:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:31:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:31:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:31:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:31:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:31:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:31:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:31:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:31:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:31:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 12:31:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:31:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:31:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:31:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:31:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:31:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:31:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:31:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:31:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:31:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:31:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:31:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:31:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:32:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:32:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:32:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:32:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:32:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:32:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:32:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:32:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:32:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:32:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:32:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:32:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:33:05] local.DEBUG: Review Not allowed for UserId: 210 for ClaimId:12, Reason: User is not the owner of the group [2024-04-05 12:33:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:33:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:33:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:33:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:33:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:33:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:33:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 12:33:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:33:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:33:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:33:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:33:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:33:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:33:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 12:33:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:33:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:33:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:33:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:33:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:33:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:33:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 12:33:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:33:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:33:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:33:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:33:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:33:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:33:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 12:33:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:33:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:33:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:33:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:33:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:33:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:33:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 12:33:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 12:33:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:33:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:33:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:33:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:33:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:33:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:33:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:33:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:33:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:33:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:33:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:33:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:33:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:33:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:33:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:33:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:33:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 12:33:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 12:33:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:33:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:33:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:33:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:33:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:33:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:33:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:33:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:33:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:33:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:33:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:33:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:33:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-05 12:33:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:33:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:33:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:33:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:33:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:33:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:33:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:34:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:34:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:34:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-05 12:34:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:34:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:34:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:34:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:34:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:34:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:34:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:34:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 12:34:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 12:34:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-05 12:34:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 12:34:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 12:34:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:34:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:34:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 12:34:50] local.DEBUG: Review Not allowed for UserId: 210 for ClaimId:12, Reason: User is not the owner of the group [2024-04-05 12:34:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:34:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:34:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-05 12:34:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:35:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 12:35:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 12:35:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-05 12:35:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-05' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-05 12:59:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:59:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:59:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:59:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 12:59:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 12:59:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 13:08:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 13:08:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 13:08:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 13:08:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 13:08:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 13:08:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 13:10:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 13:10:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 13:10:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 13:10:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 13:10:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 13:10:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 13:10:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 13:10:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 13:10:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 13:11:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 13:11:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 13:11:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 13:11:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 13:11:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 13:11:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 13:11:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 13:11:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 13:11:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 13:18:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 13:18:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 13:18:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 13:18:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 13:18:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 13:18:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 13:19:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 13:19:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 13:19:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 13:23:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 13:23:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 13:23:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-05 13:23:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 13:25:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 13:25:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 13:25:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-05 13:25:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 13:29:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 13:29:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 13:29:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-05 13:29:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 13:29:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 13:29:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 13:29:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-05 13:29:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 14:54:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 14:54:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 14:54:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-05 14:54:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 14:56:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 14:56:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 14:56:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 14:56:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 14:56:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 14:56:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 14:56:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 14:56:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 14:56:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 14:56:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 14:56:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 14:56:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 14:56:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 14:56:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 14:56:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 14:56:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 14:57:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 14:57:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 14:57:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 14:57:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 14:57:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 14:57:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 14:57:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 14:57:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 14:57:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 14:57:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 14:57:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 14:57:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 14:57:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 14:57:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 14:57:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 14:57:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 14:57:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 14:57:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 14:57:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 14:57:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 14:57:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 14:57:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 14:57:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 14:57:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 14:58:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 14:58:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 14:58:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 14:58:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 14:58:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 14:58:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 14:58:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 14:58:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 14:58:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 14:58:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 14:58:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 14:58:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 14:58:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 14:58:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 14:58:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 14:58:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 14:58:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 14:58:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 14:58:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 14:58:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 14:58:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 14:58:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 14:58:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 14:58:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 14:58:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-05 14:58:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 14:58:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 14:58:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 14:58:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 14:58:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 14:58:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 14:58:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 14:58:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 14:58:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 14:58:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 14:59:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-05 14:59:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-05 14:59:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 14:59:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 14:59:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 14:59:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 15:00:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 15:00:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 15:00:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 15:00:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 15:00:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 15:00:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 15:00:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 15:00:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 15:00:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 15:00:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 15:00:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 15:00:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 15:00:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 15:00:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 15:00:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 15:01:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 15:01:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 15:01:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 15:01:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 15:01:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 15:01:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 15:02:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-08' and `tasks`.`due_by` > '2024-04-05' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 15:02:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 15:02:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-05 15:02:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 15:02:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 15:02:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 15:02:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 15:02:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 15:02:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 17:08:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 17:08:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 17:08:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-05 17:08:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 17:25:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 17:25:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 17:25:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 17:25:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 17:25:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 17:25:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 17:25:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 17:25:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 17:25:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 17:25:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 17:25:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 17:25:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 17:27:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 17:27:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 17:27:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-05 17:27:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 17:44:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 17:44:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 17:44:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 17:44:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 17:44:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 17:44:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 17:44:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 17:44:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 17:44:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-05 17:44:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 19:43:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-05 19:43:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-05 19:43:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-04' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-05 19:43:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 01:26:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 01:26:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 01:26:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 01:26:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 01:26:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 01:26:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 01:26:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 01:26:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 01:26:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 01:26:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 01:26:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 01:26:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 07:05:03] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-04-06 07:05:03] local.ERROR: Error while clonning tasks and associated rewards, rolling back the transaction. Message: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'created_by' in 'field list' (SQL: insert into `task_assigned` (`user_id`, `task_id`, `group_id`, `status`, `task_details_for_approval`, `deleted_at`, `created_by`, `updated_at`, `created_at`) values (16, 244, 18, PENDING, ?, ?, ?, 2024-04-06 07:05:03, 2024-04-06 07:05:03)) [2024-04-06 07:05:03] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(546): Illuminate\Database\Connection->run() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(498): Illuminate\Database\Connection->statement() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3322): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1869): Illuminate\Database\Query\Builder->insertGetId() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1330): Illuminate\Database\Eloquent\Builder->__call() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1295): Illuminate\Database\Eloquent\Model->insertAndSetId() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert() #9 /home/o5t6x7pgljbm/public_html/admin/app/Models/TaskAssigned.php(82): Illuminate\Database\Eloquent\Model->save() #10 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(466): App\Models\TaskAssigned->cloneTaskAssignee() #11 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(410): App\V2\Services\TaskService->cloneTaskAndReward() #12 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2CronController.php(37): App\V2\Services\TaskService->cloneTasksAndRewards() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2CronController->create_repeate_tasks() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #44 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #45 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #46 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #47 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #48 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #49 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #50 {main} [2024-04-06 10:20:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 10:20:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 10:20:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-06 10:20:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 10:21:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-09' and `tasks`.`due_by` > '2024-04-06' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-06 10:21:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-06' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-06 10:23:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-09' and `tasks`.`due_by` > '2024-04-06' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-06 10:23:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-06' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-06 10:23:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 10:23:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 10:23:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-06 10:23:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 10:23:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 10:23:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 10:23:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-06 10:23:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 10:23:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-06 10:23:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-06 10:23:07] local.DEBUG: Current Balance: 0 [2024-04-06 10:23:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-06 10:23:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-06 10:23:23] local.DEBUG: Current Balance: 0 [2024-04-06 10:23:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-06 10:23:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-06 10:23:33] local.DEBUG: Current Balance: 0 [2024-04-06 10:23:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 10:23:36] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ChildController.php(131): App\V2\Services\TaskService->getTasksById() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ChildController->get_task_by_id() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #39 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #40 {main} [2024-04-06 10:23:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-06 10:23:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-06 10:23:39] local.DEBUG: Current Balance: 0 [2024-04-06 10:23:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-06 10:23:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-06 10:23:41] local.DEBUG: Current Balance: 0 [2024-04-06 10:23:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 10:23:46] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ChildController.php(131): App\V2\Services\TaskService->getTasksById() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ChildController->get_task_by_id() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #39 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #40 {main} [2024-04-06 10:23:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-06 10:23:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-06 10:23:47] local.DEBUG: Current Balance: 0 [2024-04-06 10:23:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 10:23:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 10:23:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-06 10:23:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 10:23:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 10:23:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 10:23:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-06 10:23:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 10:24:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-06 10:24:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-06 10:24:02] local.DEBUG: Current Balance: 0 [2024-04-06 10:24:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 10:24:06] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-06 10:24:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-06 10:24:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-06 10:24:13] local.DEBUG: Current Balance: 0 [2024-04-06 10:24:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-09' and `tasks`.`due_by` > '2024-04-06' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-06 10:24:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-06' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-06 10:25:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-09' and `tasks`.`due_by` > '2024-04-06' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-06 10:25:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-06' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-06 10:25:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-09' and `tasks`.`due_by` > '2024-04-06' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-06 10:25:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-06' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-06 14:52:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:52:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:52:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:52:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:52:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:52:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:53:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:53:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:53:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:53:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:53:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:53:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:53:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:53:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:53:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:53:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:53:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:53:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:53:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:53:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:53:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:53:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:53:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:53:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:53:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:53:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:53:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:53:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:53:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:53:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:54:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:54:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:54:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:54:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:54:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:54:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:54:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:54:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:54:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:54:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:54:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:54:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:54:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:54:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:54:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:54:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:54:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:54:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:54:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:54:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:54:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:54:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:54:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:54:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:54:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:54:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:54:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:54:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:54:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:54:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:55:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:55:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:55:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:55:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:55:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:55:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:55:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-09' and `tasks`.`due_by` > '2024-04-06' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:55:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:55:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:55:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:55:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-09' and `tasks`.`due_by` > '2024-04-06' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:55:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:55:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:55:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:55:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:55:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-09' and `tasks`.`due_by` > '2024-04-06' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:55:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:55:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:55:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:56:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-09' and `tasks`.`due_by` > '2024-04-06' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:56:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:56:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:56:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:56:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-09' and `tasks`.`due_by` > '2024-04-06' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:56:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:56:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:56:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:56:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-09' and `tasks`.`due_by` > '2024-04-06' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:56:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:56:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:56:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:56:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-09' and `tasks`.`due_by` > '2024-04-06' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:56:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:56:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:56:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:56:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:56:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-09' and `tasks`.`due_by` > '2024-04-06' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:56:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:56:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:56:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:56:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:56:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-09' and `tasks`.`due_by` > '2024-04-06' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:56:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:56:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:56:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:56:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-09' and `tasks`.`due_by` > '2024-04-06' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:56:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:56:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:57:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-09' and `tasks`.`due_by` > '2024-04-06' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:57:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:57:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:57:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:57:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:57:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:57:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:57:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:57:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:57:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:57:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:57:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:57:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:57:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:57:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:58:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:58:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:58:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:58:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:58:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:58:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:58:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:58:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:58:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:58:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:58:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 14:58:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 14:58:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-09' and `tasks`.`due_by` > '2024-04-06' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:58:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:58:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:58:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 14:58:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-06 15:02:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 15:02:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 15:02:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 15:02:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 15:02:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 15:02:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 15:02:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 15:02:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 15:02:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 15:02:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 15:02:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 15:02:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 15:02:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 15:02:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 15:02:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 15:02:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 15:02:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 15:02:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 15:02:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-09' and `tasks`.`due_by` > '2024-04-06' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 15:02:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 15:02:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 15:03:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 15:03:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-06 15:03:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 15:03:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-06 15:03:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-09' and `tasks`.`due_by` > '2024-04-06' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 15:03:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 15:03:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-06 15:03:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 15:03:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 15:03:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 15:03:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-06 15:03:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-05' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-06 15:03:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-07 00:24:59] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 ) [accept-encoding] => Array ( [0] => identity ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Chrome/80.0.3987.132 Safari/537.36 ) [x-https] => Array ( [0] => 1 ) ) [2024-04-07 00:24:59] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 ) [accept-encoding] => Array ( [0] => identity ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Chrome/80.0.3987.132 Safari/537.36 ) [x-https] => Array ( [0] => 1 ) ) [2024-04-07 00:25:13] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 ) [accept-encoding] => Array ( [0] => identity ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Chrome/80.0.3987.132 Safari/537.36 ) [x-https] => Array ( [0] => 1 ) ) [2024-04-07 00:25:23] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 ) [accept-encoding] => Array ( [0] => identity ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Chrome/80.0.3987.132 Safari/537.36 ) [x-https] => Array ( [0] => 1 ) ) [2024-04-07 00:46:13] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 ) [accept-encoding] => Array ( [0] => identity ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Chrome/80.0.3987.132 Safari/537.36 ) [x-https] => Array ( [0] => 1 ) ) [2024-04-07 00:46:15] local.DEBUG: Headers: Array ( [accept] => Array ( [0] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 ) [accept-encoding] => Array ( [0] => identity ) [accept-language] => Array ( [0] => en ) [connection] => Array ( [0] => Keep-Alive ) [content-length] => Array ( [0] => 0 ) [host] => Array ( [0] => coinsforcollege.org ) [user-agent] => Array ( [0] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Chrome/80.0.3987.132 Safari/537.36 ) [x-https] => Array ( [0] => 1 ) ) [2024-04-07 03:20:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-07 03:20:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-07 03:20:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-07 03:20:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-07 03:20:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-07 03:20:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-07 03:20:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-07 03:20:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-07 03:20:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-07 03:20:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-07 03:20:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-06' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-07 03:20:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-07 07:05:03] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-04-07 07:05:03] local.ERROR: Error while clonning tasks and associated rewards, rolling back the transaction. Message: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'created_by' in 'field list' (SQL: insert into `task_assigned` (`user_id`, `task_id`, `group_id`, `status`, `task_details_for_approval`, `deleted_at`, `created_by`, `updated_at`, `created_at`) values (16, 245, 18, PENDING, ?, ?, ?, 2024-04-07 07:05:03, 2024-04-07 07:05:03)) [2024-04-07 07:05:03] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(546): Illuminate\Database\Connection->run() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(498): Illuminate\Database\Connection->statement() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3322): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1869): Illuminate\Database\Query\Builder->insertGetId() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1330): Illuminate\Database\Eloquent\Builder->__call() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1295): Illuminate\Database\Eloquent\Model->insertAndSetId() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert() #9 /home/o5t6x7pgljbm/public_html/admin/app/Models/TaskAssigned.php(82): Illuminate\Database\Eloquent\Model->save() #10 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(466): App\Models\TaskAssigned->cloneTaskAssignee() #11 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(410): App\V2\Services\TaskService->cloneTaskAndReward() #12 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2CronController.php(37): App\V2\Services\TaskService->cloneTasksAndRewards() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2CronController->create_repeate_tasks() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #44 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #45 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #46 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #47 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #48 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #49 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #50 {main} [2024-04-08 05:12:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 05:12:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 05:12:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 05:12:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 05:12:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 05:12:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 05:12:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 05:12:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 05:12:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 05:52:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 05:52:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 05:52:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 05:52:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 05:53:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 05:53:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 05:53:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 05:53:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 07:05:03] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-04-08 07:05:03] local.ERROR: Error while clonning tasks and associated rewards, rolling back the transaction. Message: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'created_by' in 'field list' (SQL: insert into `task_assigned` (`user_id`, `task_id`, `group_id`, `status`, `task_details_for_approval`, `deleted_at`, `created_by`, `updated_at`, `created_at`) values (16, 246, 18, PENDING, ?, ?, ?, 2024-04-08 07:05:03, 2024-04-08 07:05:03)) [2024-04-08 07:05:03] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(546): Illuminate\Database\Connection->run() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(498): Illuminate\Database\Connection->statement() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3322): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1869): Illuminate\Database\Query\Builder->insertGetId() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1330): Illuminate\Database\Eloquent\Builder->__call() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1295): Illuminate\Database\Eloquent\Model->insertAndSetId() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert() #9 /home/o5t6x7pgljbm/public_html/admin/app/Models/TaskAssigned.php(82): Illuminate\Database\Eloquent\Model->save() #10 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(466): App\Models\TaskAssigned->cloneTaskAssignee() #11 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(410): App\V2\Services\TaskService->cloneTaskAndReward() #12 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2CronController.php(37): App\V2\Services\TaskService->cloneTasksAndRewards() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2CronController->create_repeate_tasks() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #44 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #45 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #46 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #47 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #48 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #49 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #50 {main} [2024-04-08 07:15:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 07:15:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 07:15:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 07:15:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 07:15:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 07:15:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 07:15:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 07:15:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 07:15:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 07:15:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 07:15:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 07:15:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 07:16:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 07:16:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 07:16:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 07:16:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 07:16:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 07:16:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 07:16:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 07:16:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 07:16:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 07:16:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 07:16:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 07:16:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 07:16:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 07:16:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 07:16:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 07:16:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:02:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:02:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:02:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:02:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:02:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:02:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:02:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:02:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:02:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:02:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:02:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:02:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:06:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:06:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:06:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:06:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:06:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:06:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:06:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:06:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:13:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:13:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:13:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 10:13:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:19:24] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"jerry@gmail.com","name":"Jerry Smith"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Jerry Smith,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> my testing<\\/li>\\n <li><strong>Assigned By:<\\/strong> sachin<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-08 10:19:24] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.78fc2e80-f591-11ee-b145-5254004d4100.18ebd384168","object":"email"} [2024-04-08 10:19:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:19:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:19:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:20:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:20:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:20:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:20:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:20:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:20:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:21:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:21:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:21:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:24:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:24:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:24:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:24:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:24:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:24:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:24:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:24:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:24:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:24:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:24:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:24:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:25:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:25:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-08 10:25:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:25:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:25:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:25:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:25:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:25:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:27:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:27:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:27:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 10:27:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:28:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:28:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:28:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:28:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:28:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:28:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:29:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:29:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:29:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:31:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:31:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:31:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 10:31:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:32:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:32:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:32:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:32:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:32:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:32:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:33:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:33:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:33:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:38:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:38:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:38:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:38:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:38:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:38:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:38:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:38:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:38:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:39:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:39:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:39:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 10:39:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:39:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:39:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:39:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 10:39:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:41:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:41:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:41:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 10:41:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:44:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:44:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:44:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:44:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:44:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:44:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:44:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:44:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:44:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:48:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:48:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:48:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 10:48:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:50:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:50:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:50:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:50:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:50:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:50:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:50:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:50:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:50:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:52:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:52:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:52:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:52:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:52:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:52:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:52:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:52:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:52:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:55:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:55:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:55:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 10:55:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:56:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:56:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:56:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 10:56:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:57:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:57:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:57:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 10:57:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:57:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:57:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:57:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:57:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:57:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:57:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:57:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:57:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:57:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:58:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:58:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:58:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:58:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:58:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:58:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:58:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:58:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:58:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:59:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:59:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:59:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:59:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:59:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:59:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:59:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:59:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 10:59:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 10:59:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 10:59:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 10:59:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 11:02:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:02:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 11:02:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 11:02:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 11:02:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 11:06:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:06:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:06:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:06:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:06:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 11:06:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 11:06:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 11:06:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 11:07:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 11:07:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 11:07:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 11:07:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 11:07:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 11:07:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 11:07:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:07:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:07:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:07:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:07:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:07:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:07:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:08:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:08:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:08:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:09:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 11:09:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 11:09:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 11:09:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 11:09:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 11:09:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 11:09:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 11:09:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 11:09:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 11:09:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 11:09:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 11:09:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 11:09:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:09:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:09:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:09:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:09:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:09:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:09:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:09:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:09:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:09:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:09:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:09:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:09:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:09:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:09:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:10:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:10:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:10:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:10:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:10:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:10:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:11:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 11:11:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 11:11:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 11:11:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 11:12:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 11:12:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 11:12:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 11:12:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 11:15:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 11:15:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 11:15:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 11:15:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 11:19:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:20:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:20:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:20:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:20:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:25:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:25:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:25:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:25:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:25:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:25:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:25:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 11:51:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 11:51:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 11:51:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 11:51:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 11:53:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 11:53:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 11:53:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 11:53:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 11:54:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 11:54:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 11:54:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 11:54:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 11:54:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 11:54:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 11:54:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 11:54:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 11:55:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 11:55:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 11:55:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 11:55:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 12:29:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 12:29:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 12:29:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 12:29:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 12:29:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 12:29:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 12:29:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:29:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:29:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:30:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 12:30:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 12:30:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 12:30:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 12:30:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 12:30:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 12:30:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:30:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:30:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:31:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 12:31:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 12:31:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 12:31:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 12:31:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 12:31:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 12:31:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:31:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:31:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:31:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:31:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:31:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:31:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:34:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 12:34:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 12:34:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 12:34:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 12:34:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 12:34:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 12:34:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:34:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:34:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:34:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:35:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 12:35:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 12:35:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 12:35:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 12:35:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 12:35:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 12:35:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:35:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:35:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:35:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:35:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:36:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 12:36:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 12:36:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 12:36:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 12:36:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 12:36:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 12:36:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:36:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:36:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:37:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:37:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:37:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:37:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:37:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:37:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:37:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:37:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:37:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:37:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:37:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:37:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:37:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:37:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:37:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:38:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:41:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 12:41:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 12:41:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 12:41:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 12:41:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 12:41:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 12:41:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:41:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:41:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:41:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:41:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 12:41:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 12:41:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 12:41:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 12:42:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:42:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:42:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:44:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 12:44:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 12:44:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 12:44:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 12:44:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 12:44:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 12:44:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 12:44:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 12:44:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 12:44:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 12:48:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:48:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:48:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:48:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:48:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:48:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:48:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:48:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-08 12:48:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:48:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:48:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:48:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:48:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-08 12:48:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:48:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:48:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:49:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:49:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:49:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:51:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 12:51:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 12:51:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 12:51:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 12:52:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 12:52:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 12:52:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 12:52:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 12:52:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 12:52:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 12:52:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:52:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:52:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:52:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:52:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-08 12:52:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:52:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:52:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:52:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:52:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-08 12:53:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 12:53:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 12:53:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 12:53:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 12:55:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 12:55:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 12:55:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 12:55:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 12:57:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:57:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:57:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:57:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:57:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-08 12:58:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 12:58:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-08 13:03:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 13:03:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 13:03:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 13:03:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 13:06:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 13:06:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 13:06:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 13:06:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 13:07:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 13:07:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 13:07:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 13:07:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 13:13:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 13:13:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 13:13:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 13:13:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 13:13:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-08 13:13:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-08 13:16:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 13:16:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 13:16:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 13:16:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 13:16:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 13:16:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 13:16:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 13:16:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 13:16:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 13:16:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 13:16:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 13:16:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 13:16:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-08 13:16:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-08 13:17:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-08 13:17:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-08 13:17:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-08 13:17:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-08 13:17:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 13:17:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 13:17:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 13:17:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 13:17:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 13:17:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 13:17:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 13:18:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 13:18:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 13:18:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 13:18:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 13:18:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 13:18:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 13:18:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-08 13:18:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 13:18:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-08 13:18:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 13:22:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 13:22:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 13:22:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 13:22:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 13:36:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 13:36:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 13:36:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 13:36:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 13:36:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 13:36:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 13:36:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 13:36:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 13:36:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 13:36:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 13:36:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 13:36:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 13:37:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 13:37:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 13:37:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 13:37:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 13:37:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 13:37:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 13:37:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 13:37:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 13:37:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 13:37:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 15:25:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 15:25:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 15:25:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 15:25:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 15:34:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-08 15:34:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-08 15:34:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 15:34:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 15:34:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 15:34:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 15:34:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-08 15:34:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-08 15:35:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 15:35:03] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-08 15:36:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-08 15:36:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-08 15:37:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-08 15:37:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-08 15:37:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-08 15:37:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-08 15:37:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-08 15:37:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-08' or `tasks`.`due_by` is null) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-08 15:37:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-08 15:37:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-08 15:38:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 15:38:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 15:38:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 15:38:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 15:38:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-08 15:38:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-08 15:38:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 15:38:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 15:38:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 15:38:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 15:38:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-08 15:38:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-08 15:39:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-08 15:39:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-08' or `tasks`.`due_by` is null) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-08 15:39:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-08 15:39:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-08 15:39:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 15:39:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 15:39:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 15:39:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 15:39:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-08 15:39:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-08 15:39:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 15:39:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 15:39:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 15:39:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 15:39:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-08 15:39:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-08 15:40:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 15:40:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 15:40:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 15:40:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 15:40:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-08 15:40:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-08 15:41:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 15:41:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 15:41:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 15:41:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 15:45:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-08 15:45:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-08 15:45:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 15:45:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 15:45:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 15:45:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 15:45:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-08 15:45:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-08 15:45:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 15:45:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 15:45:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 15:45:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 15:45:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-08 15:45:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-08 15:45:28] local.DEBUG: Current Balance: 0 [2024-04-08 15:46:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 15:46:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 15:46:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 15:46:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 15:46:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 15:46:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 15:46:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 15:46:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 15:46:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 15:46:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 15:46:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 15:46:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 15:46:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-08 15:47:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-08 15:48:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-08 15:48:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 15:48:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 15:48:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 15:48:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 15:48:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 15:48:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 15:48:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-08 15:48:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-08 15:48:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 15:48:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 15:48:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 15:48:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 15:49:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 15:49:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 15:49:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 15:49:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 15:49:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 15:49:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 15:49:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-08 15:49:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-08 15:49:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-08 15:49:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-08 15:50:11] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"merebass1@gmail.com","name":"Student Severns"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Student Severns,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Disneyland Trip!!!<\\/li>\\n <li><strong>Assigned By:<\\/strong> Parent Severns<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-08 15:50:11] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.aec02250-f5bf-11ee-b61a-525400f92481.18ebe6718f5","object":"email"} [2024-04-08 15:50:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-08 15:50:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-08 15:50:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-08 15:50:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-08 15:50:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-08 15:51:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-08 15:51:26] local.DEBUG: Product Image Details: Array ( [product_id] => 209 [image_name] => 12969791111712591486.png ) [2024-04-08 15:51:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-08 15:51:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-08 15:51:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-08 15:51:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-08 15:51:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-08 15:52:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-08 15:52:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-08 15:52:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 15:52:02] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-08 15:52:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-08 15:52:04] local.DEBUG: Product Image Details: Array ( [product_id] => 209 [image_name] => 17927429261712591524.png ) [2024-04-08 15:52:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-08 15:52:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-08 15:52:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 15:52:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 15:52:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 15:52:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 15:52:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 15:52:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 15:55:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 15:55:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 15:55:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 15:55:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 15:55:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 15:55:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 15:55:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 15:55:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 15:55:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 15:55:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 15:55:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 15:55:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 16:40:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 16:40:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 16:40:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 16:40:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 16:40:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 16:40:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 16:40:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 16:40:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 16:41:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 16:41:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 16:41:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 16:41:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 16:44:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-08 16:44:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-08 16:44:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 16:44:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 16:44:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 16:44:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 16:44:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-08 16:44:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-08 16:44:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-08 16:44:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-08 16:44:22] local.DEBUG: Current Balance: 0 [2024-04-08 16:44:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 16:44:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 16:44:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 16:44:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 16:44:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 16:44:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 16:44:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 16:44:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 16:44:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 16:44:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 16:44:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-08 16:44:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-08 16:45:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 16:45:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 16:45:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 16:45:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 16:45:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 16:45:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 16:46:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 16:46:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 16:46:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 16:46:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 16:46:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 16:46:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 16:46:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-08 16:46:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-08 16:46:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 16:46:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 16:46:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 16:46:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 16:46:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 16:46:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 16:46:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 16:46:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 16:46:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 16:46:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 16:46:27] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-08 16:46:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-08 16:46:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-08 16:46:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 16:47:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 16:47:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 16:47:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 16:48:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-08 16:48:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-08 16:48:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 16:48:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 16:48:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 16:48:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 16:48:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 16:48:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 16:48:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 16:48:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 16:48:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 16:48:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 16:48:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 16:48:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 16:48:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 16:48:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 16:48:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 16:48:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 16:48:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 16:48:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-08 16:48:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-08 16:48:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-08 16:48:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-08 16:48:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 16:48:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 16:48:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 16:48:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 16:48:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-08 16:48:32] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-08 16:49:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-08 16:49:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-08 16:49:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 16:49:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 16:49:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 16:49:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 16:49:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 16:49:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 16:56:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 16:56:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 16:56:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 16:56:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 16:56:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 16:56:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 17:59:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 17:59:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 17:59:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 17:59:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 18:00:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 18:00:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 18:00:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 18:00:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 18:00:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-08 18:00:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-08 18:00:50] local.DEBUG: Current Balance: 0 [2024-04-08 18:00:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 18:00:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 18:00:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 18:00:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 18:01:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-08 18:01:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-08 18:01:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-11' and `tasks`.`due_by` > '2024-04-08' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-08 18:01:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-08' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-08 18:01:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 18:01:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 18:01:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 18:01:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 18:01:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 18:01:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 18:01:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 18:01:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 18:01:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 18:01:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 18:01:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 18:01:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 18:02:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 18:02:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 18:02:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 18:02:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 18:04:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 18:04:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 18:04:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 18:04:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 18:04:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 18:04:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 18:04:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 18:04:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 18:04:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 18:04:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 18:04:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 18:04:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 18:04:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-08 18:04:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-08 18:04:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-07' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-08 18:04:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 01:12:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 01:12:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 01:12:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 01:12:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 01:12:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 01:12:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 01:12:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 01:12:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 01:12:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-09 01:12:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 01:13:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 01:13:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 01:13:12] local.DEBUG: Current Balance: 0 [2024-04-09 01:13:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-12' and `tasks`.`due_by` > '2024-04-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-09 01:13:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-09' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-09 01:13:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 01:13:34] local.DEBUG: task visible_to: [2024-04-09 01:13:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-12' and `tasks`.`due_by` > '2024-04-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-09 01:13:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-09' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-09 01:13:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 01:13:46] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-09 01:14:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 01:14:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 01:14:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-09 01:14:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 02:18:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 02:18:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 02:18:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 02:18:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 02:18:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 02:18:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 02:18:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 02:18:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 02:18:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 02:18:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 02:18:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 02:18:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 02:18:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 02:18:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 02:18:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 02:18:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 02:18:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 02:18:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 02:19:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 02:19:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 02:19:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 02:19:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 02:19:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 02:19:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 02:19:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 02:19:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 04:57:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 04:57:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 04:57:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 04:57:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 04:57:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 04:57:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 04:57:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-12' and `tasks`.`due_by` > '2024-04-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 04:57:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 04:57:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 04:58:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 04:58:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 04:58:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 04:58:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 04:58:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 04:58:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 04:58:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-12' and `tasks`.`due_by` > '2024-04-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 04:58:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 04:58:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 04:58:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 04:58:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-09 04:59:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 04:59:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 04:59:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-09 05:10:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 05:10:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-09 05:11:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 05:11:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 05:15:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 05:15:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 05:15:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 05:15:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 05:15:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 05:15:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 05:21:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 05:21:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 05:21:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 05:21:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 05:21:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 05:21:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 05:21:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-12' and `tasks`.`due_by` > '2024-04-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 05:21:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 05:21:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 05:27:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 05:27:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 05:27:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 05:27:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 05:27:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 05:27:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 05:27:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-12' and `tasks`.`due_by` > '2024-04-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 05:27:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 05:27:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 05:27:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-12' and `tasks`.`due_by` > '2024-04-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 05:27:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 05:27:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 05:28:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 05:28:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-09 05:29:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-12' and `tasks`.`due_by` > '2024-04-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 05:29:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 05:29:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 05:31:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 05:31:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 05:31:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 05:31:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 05:31:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 05:31:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 05:54:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-12' and `tasks`.`due_by` > '2024-04-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 05:54:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 05:54:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 05:54:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 05:54:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-09 06:18:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:18:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-09 06:18:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:18:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-09 06:19:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 06:19:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 06:19:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 06:19:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 06:19:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 06:19:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 06:19:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-12' and `tasks`.`due_by` > '2024-04-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:19:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:19:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:19:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:19:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-09 06:19:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:19:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:20:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:20:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-09 06:20:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:20:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-09 06:29:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 06:29:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 06:29:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 06:29:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 06:29:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 06:29:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 06:30:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-12' and `tasks`.`due_by` > '2024-04-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:30:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:30:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:30:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:30:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-09 06:36:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 06:36:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 06:36:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 06:36:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 06:36:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 06:36:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 06:37:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-12' and `tasks`.`due_by` > '2024-04-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:37:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:37:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:37:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:37:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-09 06:37:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:37:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:37:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:37:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:38:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:38:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-09 06:38:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-12' and `tasks`.`due_by` > '2024-04-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:38:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:38:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:38:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:38:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:38:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-09 06:38:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:38:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:38:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:38:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:38:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-09 06:39:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:39:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:39:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-09 06:39:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:39:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:39:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-09 06:39:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:39:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:39:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-09 06:39:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:39:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:39:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:39:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-09 06:39:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:39:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:39:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-09 06:43:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:43:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-09 06:43:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:43:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-09 06:44:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`created_by` in (?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:44:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`created_by` in (?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:44:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:44:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-09 06:44:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`created_by` in (?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:44:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`created_by` in (?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:44:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:44:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-09 06:49:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 06:49:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 06:49:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 06:49:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 06:49:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 06:49:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 06:49:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-12' and `tasks`.`due_by` > '2024-04-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:49:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:49:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:49:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 06:49:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-09 06:53:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 06:53:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 06:53:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 06:53:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 06:53:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 06:53:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:03:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:03:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:03:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-09 07:03:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:03:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:03:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:03:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-09 07:03:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:04:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:04:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:04:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:04:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:04:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:04:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:04:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-09 07:05:01] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-04-09 07:06:01] local.DEBUG: Product Image Details: Array ( [product_id] => 210 [image_name] => 983561261712646361.png ) [2024-04-09 07:06:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 07:06:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:06:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:06:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:06:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:06:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:06:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:06:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-09 07:06:53] local.DEBUG: Product Image Details: Array ( [product_id] => 211 [image_name] => 3785938141712646413.png ) [2024-04-09 07:06:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 07:06:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:06:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:06:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:06:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:06:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:06:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:07:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 07:07:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 07:07:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-12' and `tasks`.`due_by` > '2024-04-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 07:07:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 07:07:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 07:07:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 07:07:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 07:07:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-09 07:07:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`created_by` in (?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 07:08:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`created_by` in (?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 07:08:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:08:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:08:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:08:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:08:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:08:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:08:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`created_by` in (?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 07:08:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-09 07:08:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 07:08:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:08:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:08:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:08:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:08:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:08:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:08:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 07:08:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-09 07:08:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-12' and `tasks`.`due_by` > '2024-04-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 07:08:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 07:08:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 07:08:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 07:08:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 07:08:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-09 07:08:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 07:08:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 07:08:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 07:08:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 07:08:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:08:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:08:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:08:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:08:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:08:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:09:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 07:10:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-12' and `tasks`.`due_by` > '2024-04-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 07:10:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 07:10:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 07:29:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:29:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:29:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-09 07:29:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:29:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 07:29:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 07:29:26] local.DEBUG: Current Balance: 0 [2024-04-09 07:29:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:29:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:29:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-09 07:29:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:29:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 07:29:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 07:29:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:29:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:29:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-09 07:29:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:29:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 07:29:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 07:29:49] local.DEBUG: Current Balance: 0 [2024-04-09 07:29:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-12' and `tasks`.`due_by` > '2024-04-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-09 07:29:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-09' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-09 07:29:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 07:29:52] local.DEBUG: task visible_to: [2024-04-09 07:29:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:29:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:29:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-09 07:29:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:30:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:30:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:30:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:30:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:30:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:30:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:30:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-12' and `tasks`.`due_by` > '2024-04-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 07:30:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 07:30:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 07:30:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:30:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:30:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:30:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:30:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:30:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:31:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-09 07:31:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:31:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:31:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:31:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:31:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:31:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:31:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-09 07:31:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:31:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:31:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:31:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:31:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:31:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:31:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-09 07:32:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 07:32:14] local.DEBUG: Product Image Details: Array ( [product_id] => 213 [image_name] => 7497433361712647934.png ) [2024-04-09 07:32:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 07:32:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:32:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:32:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:32:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:32:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:32:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:32:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 07:32:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 07:32:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:32:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:32:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:32:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:32:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:32:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:32:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 07:32:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 07:34:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:34:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:34:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:34:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:34:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 07:34:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 07:34:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-09 08:49:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 08:49:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 08:49:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 08:49:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 08:49:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 08:49:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 08:49:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-09 08:50:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 08:50:12] local.DEBUG: Product Image Details: Array ( [product_id] => 214 [image_name] => 14650322011712652612.png ) [2024-04-09 08:50:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 08:50:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 08:50:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 08:50:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 08:50:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 08:50:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 08:50:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 08:51:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 08:51:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 08:51:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 08:51:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 08:51:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 08:51:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 08:51:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 08:51:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 08:51:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 08:51:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 08:51:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 08:51:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 08:51:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 08:51:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 08:51:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 08:51:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:09:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:09:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:09:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:09:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:09:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:09:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:13:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 09:13:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:13:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:13:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:13:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:13:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:13:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:19:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 09:19:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 09:20:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:20:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:20:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:20:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:20:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:20:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:20:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 09:20:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 09:33:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:33:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:33:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:33:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:33:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:33:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:33:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-09 09:34:39] local.DEBUG: Product Image Details: Array ( [product_id] => 215 [image_name] => 14650001411712655279.png ) [2024-04-09 09:34:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 09:34:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:34:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:34:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:34:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:34:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:34:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:34:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 09:34:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 09:34:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:34:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:34:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:34:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:34:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:34:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:35:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:35:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:35:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:35:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:35:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:35:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:35:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:35:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:35:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:35:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:35:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:35:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:35:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-09 09:36:18] local.DEBUG: Product Image Details: Array ( [product_id] => 216 [image_name] => 18833599251712655378.png ) [2024-04-09 09:36:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 09:36:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:36:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:36:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:36:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:36:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:36:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:36:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 09:36:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 09:36:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:36:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:36:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:36:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:36:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:36:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:44:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:44:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:44:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:44:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:44:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:44:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:44:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-09 09:45:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-09 09:45:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:45:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:45:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:45:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:45:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:45:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:47:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:47:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:47:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:47:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:47:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:47:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:48:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:48:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:48:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:48:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:48:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:48:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:50:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:50:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:50:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:50:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:50:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:50:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:51:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:51:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:51:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:51:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:51:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:51:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:51:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-09 09:51:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-09 09:51:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:51:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:51:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:51:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:51:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:51:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:51:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:51:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:51:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:51:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:51:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:51:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:51:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:51:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:51:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:51:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:51:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:51:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:52:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:52:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:52:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:52:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:52:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:52:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:53:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:53:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:53:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:53:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:53:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:53:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:55:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-09 09:56:47] local.DEBUG: Product Image Details: Array ( [product_id] => 217 [image_name] => 12390296181712656607.png ) [2024-04-09 09:56:47] local.DEBUG: Product Image Details: Array ( [product_id] => 217 [image_name] => 16261107921712656607.png ) [2024-04-09 09:56:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 09:56:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:56:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:56:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:56:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:56:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 09:56:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 09:56:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 09:56:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 10:06:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:06:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:06:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:06:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:06:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:06:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:07:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-09 10:08:08] local.DEBUG: Product Image Details: Array ( [product_id] => 218 [image_name] => 12822575081712657288.png ) [2024-04-09 10:08:08] local.DEBUG: Product Image Details: Array ( [product_id] => 218 [image_name] => 125013051712657288.png ) [2024-04-09 10:08:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 10:08:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:08:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:08:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:08:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:08:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:08:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:08:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 10:08:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 10:09:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:09:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:09:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:09:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:09:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:09:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:09:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 10:09:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 10:09:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:09:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:09:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:09:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:09:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:09:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:10:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:10:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:10:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:10:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:10:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:10:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:10:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 10:10:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 10:11:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:11:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:11:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:11:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:11:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:11:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:12:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 10:12:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 10:12:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:12:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:12:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:12:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:12:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:12:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:12:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 10:12:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 10:12:41] local.DEBUG: Review allowed to UserId: 30 for ClaimId:12, Reason: User is the owner of the group, and task belongs to the same group [2024-04-09 10:12:41] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"jerry@gmail.com","name":"Jerry Smith"}}],"subject":"Task Approved","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Approved<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Approved<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Jerry Smith,<\\/p>\\n <p>Congratulations! The task assigned to you has been approved by your parent:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Myfirst v2 tas<\\/li>\\n <\\/ul>\\n <p>Keep up the good work!<\\/p>\\n <p>If you have any questions or concerns, please contact your parent or our support team.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-09 10:12:41] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.b334ac80-f659-11ee-9b05-525400103106.18ec2587748","object":"email"} [2024-04-09 10:13:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-12' and `tasks`.`due_by` > '2024-04-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 10:13:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 10:13:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 10:13:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:13:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:13:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:13:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:13:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:13:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:13:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-09 10:13:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:13:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:13:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:13:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:13:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:13:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:13:44] local.DEBUG: Product Image Details: Array ( [product_id] => 219 [image_name] => 12096364071712657624.png ) [2024-04-09 10:13:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 10:13:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:13:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:13:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:13:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:13:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:13:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:13:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 10:13:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 10:14:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:14:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:14:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:14:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:14:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:14:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:19:28] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"ff@g.com","name":"ff@g.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello ff@g.com,<\\/p>\\n <p>You have been invited to join the \\"\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: <\\/li>\\n <li>Invited By: sachin<\\/li>\\n <li>Role: Parent<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"https:\\/\\/play.google.com\\/store\\/apps\\/details?id=com.coins.college\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"https:\\/\\/apps.apple.com\\/us\\/app\\/coins-for-college\\/id6469045127\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-09 10:19:29] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.a62e8461-f65a-11ee-a362-525400fa05f6.18ec25eafa6","object":"email"} [2024-04-09 10:20:57] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"jerry@gmail.com","name":"jerry@gmail.com"}}],"subject":"Group Invitation Update - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation Update - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation Update<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello jerry@gmail.com,<\\/p>\\n <p>Your membership of the group with name \\"Sachin\\u0019s Group\\" has been updated.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: Sachin\\u0019s Group<\\/li>\\n <li>Updated Role in Group: Parent<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"https:\\/\\/play.google.com\\/store\\/apps\\/details?id=com.coins.college\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"https:\\/\\/apps.apple.com\\/us\\/app\\/coins-for-college\\/id6469045127\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-09 10:20:57] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.db1e7540-f65a-11ee-a69c-525400d4bb1c.18ec2600a94","object":"email"} [2024-04-09 10:22:56] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"jerry@gmail.com","name":"jerry@gmail.com"}}],"subject":"Group Invitation Update - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation Update - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation Update<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello jerry@gmail.com,<\\/p>\\n <p>Your membership of the group with name \\"Sachin\\u0019s Group\\" has been updated.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: Sachin\\u0019s Group<\\/li>\\n <li>Updated Role in Group: Child<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"https:\\/\\/play.google.com\\/store\\/apps\\/details?id=com.coins.college\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"https:\\/\\/apps.apple.com\\/us\\/app\\/coins-for-college\\/id6469045127\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-09 10:22:56] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.21ed9820-f65b-11ee-8ac8-52540064429e.18ec261daa2","object":"email"} [2024-04-09 10:31:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:31:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:31:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:31:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:31:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:31:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:31:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:31:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:31:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:31:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:31:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:31:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:41:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:41:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:41:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:41:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:41:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:41:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:41:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-09 10:42:40] local.DEBUG: Product Image Details: Array ( [product_id] => 220 [image_name] => 13556283121712659359.png ) [2024-04-09 10:42:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 10:42:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:42:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:42:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:42:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:42:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:42:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:42:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 10:42:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 10:42:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:42:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:42:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:42:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:42:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:42:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:46:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:46:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:46:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:46:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:46:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:46:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:46:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 10:46:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 10:46:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 10:46:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 10:46:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-09 10:47:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 10:47:49] local.DEBUG: Product Image Details: Array ( [product_id] => 220 [image_name] => 7784360821712659669.png ) [2024-04-09 10:47:50] local.DEBUG: Product Image Details: Array ( [product_id] => 220 [image_name] => 15106447121712659669.png ) [2024-04-09 10:47:50] local.DEBUG: Product Image Details: Array ( [product_id] => 220 [image_name] => 21083841491712659670.png ) [2024-04-09 10:47:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 10:47:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 10:48:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:48:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:48:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:48:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:48:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:48:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:48:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 10:48:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 10:48:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:48:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:48:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:48:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:48:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:48:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:48:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 10:48:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 10:48:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:48:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:48:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:48:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:48:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:48:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:48:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 10:48:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 10:50:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:50:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:50:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:50:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:50:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:50:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:50:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 10:50:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 10:50:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:50:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:50:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:50:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:50:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:50:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:50:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 10:50:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 10:51:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:51:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:51:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:51:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:51:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:51:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:51:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 10:51:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 10:51:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:51:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:51:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:51:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:51:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:51:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:51:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 10:51:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 10:52:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:52:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:52:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:52:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:52:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:52:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:52:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 10:52:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 10:52:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:52:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:52:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:52:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:52:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:52:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:52:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 10:52:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 10:52:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:52:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:52:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:52:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:52:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:52:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:53:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 10:53:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 10:53:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:53:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:53:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:53:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:53:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:53:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:53:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 10:53:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 10:54:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-09 10:54:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 10:54:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 10:55:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 10:55:02] local.DEBUG: Product Image Details: Array ( [product_id] => 220 [image_name] => 20403038101712660102.png ) [2024-04-09 10:55:02] local.DEBUG: Product Image Details: Array ( [product_id] => 220 [image_name] => 6760023271712660102.png ) [2024-04-09 10:55:02] local.DEBUG: Product Image Details: Array ( [product_id] => 220 [image_name] => 21363154461712660102.png ) [2024-04-09 10:55:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 10:55:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 10:58:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:58:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:58:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:58:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:58:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:58:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:58:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 10:58:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 10:58:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:58:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:58:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:58:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:58:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:58:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:58:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 10:58:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 10:58:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:58:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:58:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:58:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:58:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:58:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:58:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 10:58:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 10:58:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:58:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:58:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:58:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:58:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:58:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:58:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 10:58:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 10:59:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:59:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:59:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:59:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:59:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 10:59:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 10:59:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 10:59:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 11:01:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:01:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:01:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:01:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:01:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:01:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:01:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 11:01:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 11:02:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:02:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:02:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:02:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:02:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:02:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:02:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 11:02:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 11:05:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:05:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:05:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:05:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:05:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:05:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:06:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 11:06:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 11:10:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:10:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:10:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:10:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:10:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:10:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:17:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:17:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:17:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:17:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:17:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:17:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:17:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 11:17:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 11:17:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-12' and `tasks`.`due_by` > '2024-04-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 11:17:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 11:17:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 11:17:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 11:17:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-12' and `tasks`.`due_by` > '2024-04-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 11:17:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 11:17:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 11:17:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 11:17:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-12' and `tasks`.`due_by` > '2024-04-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 11:17:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 11:17:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 11:17:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 11:17:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-12' and `tasks`.`due_by` > '2024-04-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 11:17:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 11:17:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 11:17:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 11:19:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-12' and `tasks`.`due_by` > '2024-04-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 11:19:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 11:19:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 11:19:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 11:19:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-12' and `tasks`.`due_by` > '2024-04-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 11:19:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 11:19:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 11:20:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 11:20:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 11:20:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:20:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:20:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:20:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:20:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:20:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:20:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 11:20:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 11:20:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-12' and `tasks`.`due_by` > '2024-04-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 11:20:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 11:20:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 11:20:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 11:20:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-12' and `tasks`.`due_by` > '2024-04-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 11:20:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 11:20:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 11:20:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 11:20:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-12' and `tasks`.`due_by` > '2024-04-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 11:20:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 11:20:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 11:20:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 11:26:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:26:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:26:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:26:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:26:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:26:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:26:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 11:26:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 11:28:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:28:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:28:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:28:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:28:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:28:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:28:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 11:28:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 11:28:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:28:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:28:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:28:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:28:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:28:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:28:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 11:28:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 11:28:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:28:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:28:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:28:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:28:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:28:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:28:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 11:28:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 11:29:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:29:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:29:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:29:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:29:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:29:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:29:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 11:29:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 11:29:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:29:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:29:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:29:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:29:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:29:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:29:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 11:29:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 11:31:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:31:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:31:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:31:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:31:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:31:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:31:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 11:31:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 11:31:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:31:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:31:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:31:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:31:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:31:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:31:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 11:31:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 11:32:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:32:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:32:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:32:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:32:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:32:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:32:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 11:32:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 11:36:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:36:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:36:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:36:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:36:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:36:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:36:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 11:36:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 11:37:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:37:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:37:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:37:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:37:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:37:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:37:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 11:37:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 11:41:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:41:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:41:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:41:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:41:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:41:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:41:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:41:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:41:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-09 11:41:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:42:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 11:42:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 11:42:01] local.DEBUG: Current Balance: 100 [2024-04-09 11:42:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:42:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:42:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-09 11:42:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:42:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 11:42:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 11:42:15] local.DEBUG: Current Balance: 100 [2024-04-09 11:42:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:42:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:42:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:42:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:42:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:42:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:42:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 11:42:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 11:42:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-12' and `tasks`.`due_by` > '2024-04-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 11:42:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 11:42:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 11:42:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 11:44:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:44:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:44:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:44:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:44:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:44:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:44:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 11:44:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 11:44:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:44:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:44:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:44:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:44:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:44:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:45:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 11:45:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 11:45:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:45:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:45:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:45:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:45:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:45:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:45:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 11:45:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 11:45:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:45:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:45:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:45:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:45:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:45:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:45:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 11:45:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 11:45:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:45:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:45:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:45:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:45:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:45:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:45:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 11:45:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 11:45:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:45:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:45:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:45:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:45:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:45:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:45:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:45:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:45:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:45:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:45:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:45:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:45:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 11:45:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 11:45:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:45:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:45:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:45:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:45:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:45:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:52:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:52:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:52:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:52:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 11:52:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 11:52:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 12:37:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 12:37:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 12:37:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 12:37:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 12:37:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 12:37:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 12:38:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 12:38:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 12:38:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 12:38:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 12:38:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 12:38:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 12:41:30] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"johnved@gmail.com","name":"johnved@gmail.com"}}],"subject":"Group Invitation Update - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation Update - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation Update<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello johnved@gmail.com,<\\/p>\\n <p>Your membership of the group with name \\"Sachin\\u0019s Group\\" has been updated.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: Sachin\\u0019s Group<\\/li>\\n <li>Updated Role in Group: Child<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"https:\\/\\/play.google.com\\/store\\/apps\\/details?id=com.coins.college\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"https:\\/\\/apps.apple.com\\/us\\/app\\/coins-for-college\\/id6469045127\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-09 12:41:31] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.7dab2e30-f66e-11ee-976c-5254004d4100.18ec2e0b893","object":"email"} [2024-04-09 12:41:41] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"john@gmail.com","name":"john@gmail.com"}}],"subject":"Group Invitation Update - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation Update - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation Update<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello john@gmail.com,<\\/p>\\n <p>Your membership of the group with name \\"Sachin\\u0019s Group\\" has been updated.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: Sachin\\u0019s Group<\\/li>\\n <li>Updated Role in Group: Parent<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"https:\\/\\/play.google.com\\/store\\/apps\\/details?id=com.coins.college\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"https:\\/\\/apps.apple.com\\/us\\/app\\/coins-for-college\\/id6469045127\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-09 12:41:41] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.83d31bb0-f66e-11ee-b61a-525400f92481.18ec2e0e0eb","object":"email"} [2024-04-09 12:51:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 12:51:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 12:51:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 12:51:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 12:51:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 12:51:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 12:55:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 12:55:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 12:55:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 12:55:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 12:55:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 12:55:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 12:57:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 12:57:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 12:57:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 12:57:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 12:57:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 12:57:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 12:57:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 12:57:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 12:57:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 12:57:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 12:57:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 12:57:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 12:57:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 12:57:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 12:57:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 12:57:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 12:57:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 12:57:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:07:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:07:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:07:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:07:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:07:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-09 13:07:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-09 13:07:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:07:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:07:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:07:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:07:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:07:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:07:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:07:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:07:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-09 13:08:04] local.DEBUG: Product Image Details: Array ( [product_id] => 221 [image_name] => 14073198711712668083.png ) [2024-04-09 13:08:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:08:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:08:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:08:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:08:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:08:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:08:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:08:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 13:08:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:08:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 13:08:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:09:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:09:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:09:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:09:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:09:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:09:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:09:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-12' and `tasks`.`due_by` > '2024-04-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 13:09:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 13:09:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 13:10:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:10:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:10:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:10:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:10:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:10:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:10:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:10:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:10:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:10:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:10:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:10:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:10:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:10:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:10:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:10:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:10:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:10:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:10:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:10:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:10:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:10:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:10:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:10:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:11:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:11:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:11:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:11:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:11:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:11:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:12:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:12:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:12:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:12:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:12:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:12:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:12:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-09 13:15:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 13:15:15] local.DEBUG: Product Image Details: Array ( [product_id] => 222 [image_name] => 16938988261712668515.png ) [2024-04-09 13:15:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:15:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:15:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:15:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:15:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:15:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:15:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:15:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 13:15:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:18:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:18:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:18:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:18:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:18:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:18:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:18:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:18:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:18:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:18:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:18:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:18:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:18:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:18:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:18:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:18:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:18:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:18:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:18:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:18:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:18:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:18:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:18:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:18:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:18:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-09 13:19:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:19:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:19:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:19:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:19:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:19:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:19:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-12' and `tasks`.`due_by` > '2024-04-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 13:19:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 13:19:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 13:19:38] local.DEBUG: Product Image Details: Array ( [product_id] => 223 [image_name] => 7712802701712668778.png ) [2024-04-09 13:19:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:19:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:19:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:19:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:19:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:19:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:19:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:19:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:19:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:19:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:19:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:19:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:19:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:19:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 13:19:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:20:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:20:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:20:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:20:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:20:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:20:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:20:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-12' and `tasks`.`due_by` > '2024-04-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 13:20:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 13:20:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 13:21:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:21:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:21:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:21:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:21:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:21:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:21:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:21:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:21:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:21:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:21:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:21:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:22:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-09 13:22:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:22:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:22:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:22:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:22:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:22:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:22:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-09 13:22:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:22:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:22:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:22:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:22:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:22:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:22:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 13:22:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-09 13:22:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 13:22:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:22:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-09 13:23:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 13:23:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:23:00] local.DEBUG: Product Image Details: Array ( [product_id] => 224 [image_name] => 4431775141712668980.png ) [2024-04-09 13:23:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:23:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:23:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:23:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:23:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:23:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:23:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:23:05] local.DEBUG: Product Image Details: Array ( [product_id] => 225 [image_name] => 18047068071712668985.png ) [2024-04-09 13:23:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:23:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:23:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:23:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:23:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:23:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:23:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:23:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:23:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:23:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:23:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:23:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:23:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:23:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-09 13:23:51] local.DEBUG: Product Image Details: Array ( [product_id] => 226 [image_name] => 18502302771712669031.png ) [2024-04-09 13:23:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:23:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:23:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:23:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:23:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:23:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:23:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:24:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 13:24:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:26:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-09 13:26:56] local.DEBUG: Product Image Details: Array ( [product_id] => 227 [image_name] => 8209892021712669216.png ) [2024-04-09 13:26:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:26:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:26:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:26:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:26:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:26:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:26:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:27:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 13:27:08] local.DEBUG: Product Image Details: Array ( [product_id] => 222 [image_name] => 15209602461712669228.png ) [2024-04-09 13:27:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 13:27:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:29:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 13:29:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:29:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:29:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:29:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:29:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:29:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:29:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:33:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:33:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:33:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:33:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:33:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:33:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:33:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-09 13:33:56] local.DEBUG: Product Image Details: Array ( [product_id] => 228 [image_name] => 11166958271712669636.png ) [2024-04-09 13:33:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:33:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:33:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:33:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:33:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:33:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:33:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:34:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 13:34:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:34:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:34:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:34:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:34:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:34:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:34:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:36:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-09 13:36:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 13:36:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:37:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 13:37:29] local.DEBUG: Product Image Details: Array ( [product_id] => 222 [image_name] => 7429766591712669849.png ) [2024-04-09 13:37:29] local.DEBUG: Product Image Details: Array ( [product_id] => 222 [image_name] => 9939814021712669849.png ) [2024-04-09 13:37:29] local.DEBUG: Product Image Details: Array ( [product_id] => 222 [image_name] => 12448418921712669849.png ) [2024-04-09 13:37:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 13:37:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:37:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:37:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:37:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:37:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:37:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:37:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:37:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-09 13:37:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 13:37:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:38:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-12' and `tasks`.`due_by` > '2024-04-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 13:38:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 13:38:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 13:39:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:39:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:39:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:39:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:39:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:39:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:39:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:39:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:39:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:39:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:39:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:39:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:41:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 13:41:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:41:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 13:41:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:41:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 13:41:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:41:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-09 13:43:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:43:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:43:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:43:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:43:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:43:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:43:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 13:43:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 13:43:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:43:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 13:43:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:43:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-09 13:44:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 13:44:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 13:44:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:44:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:44:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:44:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:44:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:44:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:44:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:44:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:44:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:44:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:44:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:44:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:44:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:44:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:44:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:44:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:44:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:44:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:44:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:44:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 13:44:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:44:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 13:44:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:44:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-09 13:44:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-09 13:44:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 13:44:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:44:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:44:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:44:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:44:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:44:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:44:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:45:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-09 13:45:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 13:45:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:45:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 13:45:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 13:45:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:45:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-09 13:45:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 13:45:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:45:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 13:45:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 13:45:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:45:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:45:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:45:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:45:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:45:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:45:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:45:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 13:45:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:45:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 13:45:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:46:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:46:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:46:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:46:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:46:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:46:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:46:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:46:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:46:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:46:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:46:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:46:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:46:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 13:46:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:46:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-09 13:46:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-09 13:46:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:46:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:46:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:46:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:46:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:46:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:46:39] local.DEBUG: Product Image Details: Array ( [product_id] => 229 [image_name] => 18449526051712670399.png ) [2024-04-09 13:46:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:46:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-09 13:46:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 13:46:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:46:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:46:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:46:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:46:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:46:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:46:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:46:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 13:46:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:46:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 13:46:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:47:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-12' and `tasks`.`due_by` > '2024-04-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 13:47:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 13:47:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 13:47:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 13:47:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-09 13:47:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:47:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 13:47:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 13:47:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:47:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 13:47:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:47:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:47:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:47:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:47:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:47:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:47:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 13:47:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-12' and `tasks`.`due_by` > '2024-04-09' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 13:47:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 13:47:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-09 13:47:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:47:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:47:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:47:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:47:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:47:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:47:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:47:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:47:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:47:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:47:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:47:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:47:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 13:47:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 13:47:44] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"jerry@gmail.com","name":"jerry@gmail.com"}}],"subject":"Group Invitation Update - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation Update - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation Update<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello jerry@gmail.com,<\\/p>\\n <p>Your membership of the group with name \\"Sachin\\u0019s Group\\" has been updated.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: Sachin\\u0019s Group<\\/li>\\n <li>Updated Role in Group: Parent<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"https:\\/\\/play.google.com\\/store\\/apps\\/details?id=com.coins.college\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"https:\\/\\/apps.apple.com\\/us\\/app\\/coins-for-college\\/id6469045127\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-09 13:47:44] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.be058d00-f677-11ee-a362-525400fa05f6.18ec31d59d0","object":"email"} [2024-04-09 13:47:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:47:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:47:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:47:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:47:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 13:47:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 13:48:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 13:48:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 14:38:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-09 14:38:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 14:38:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-09 14:38:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 14:38:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-09 14:38:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-09 14:38:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-09 14:38:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 14:42:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-09 14:42:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 14:42:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-09 14:42:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 14:42:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-09 14:42:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-09 14:42:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-09 14:42:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 14:51:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 14:51:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 14:51:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 14:51:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 14:51:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 14:51:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 14:51:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 14:51:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 14:56:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 14:56:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 14:56:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 14:56:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 14:56:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 14:56:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 14:57:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 14:57:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 14:57:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 14:57:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 14:57:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 14:57:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 18:28:05] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"gwestfam@aol.com","name":"Gary West"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Gary West,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">93495<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-09 18:28:06] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.e874abd0-f69e-11ee-a69c-525400d4bb1c.18ec41e070d","object":"email"} [2024-04-09 18:29:04] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"gwestfam@aol.com","name":"Gary West"}}],"subject":"Resend Verification Code - Coins for College","htmlbody":"<!-- otp_email_template.blade.php -->\\n<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>OTP Email<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>OTP Verification<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your verification code is: <strong>75744<\\/strong><\\/p>\\n <p>Please use this code to complete the verification process.<\\/p>\\n <p>If you did not request this verification or have any concerns, please contact our support team immediately.<\\/p>\\n <p>Thank you for choosing Coins For College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins For College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-09 18:29:05] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.0b9c9c30-f69f-11ee-a69c-525400d4bb1c.18ec41eed73","object":"email"} [2024-04-09 18:29:57] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"gwestfam@aol.com","name":"Gary West"}}],"subject":"Resend Verification Code - Coins for College","htmlbody":"<!-- otp_email_template.blade.php -->\\n<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>OTP Email<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>OTP Verification<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your verification code is: <strong>26484<\\/strong><\\/p>\\n <p>Please use this code to complete the verification process.<\\/p>\\n <p>If you did not request this verification or have any concerns, please contact our support team immediately.<\\/p>\\n <p>Thank you for choosing Coins For College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins For College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-09 18:29:57] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.2ac7e380-f69f-11ee-bd1b-525400ae9113.18ec41fb9b8","object":"email"} [2024-04-09 18:32:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 18:32:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 18:32:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 18:32:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 18:32:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 18:32:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 18:32:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-09 18:32:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-09 18:32:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 18:32:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 18:32:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 18:32:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 18:32:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 18:32:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 18:32:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-09 18:32:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 18:32:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-09 18:32:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 18:33:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 18:33:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 18:33:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 18:33:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 18:33:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 18:33:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 18:33:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 18:33:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 18:33:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-09 18:33:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 18:33:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-09 18:33:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 18:33:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-09 18:33:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 18:33:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 18:33:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 18:33:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-09 18:33:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 18:33:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-09 18:33:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 18:33:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 18:33:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 18:33:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-09 18:33:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 18:33:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 18:33:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 18:33:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 18:33:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 18:33:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 18:33:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 22:54:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 22:54:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 22:54:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 22:54:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 22:54:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 22:54:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 22:55:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-09 22:55:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 22:55:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-09 22:55:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 22:55:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-09 22:55:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 22:55:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 22:55:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 22:55:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 22:55:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-09 22:55:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-08' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-09 22:55:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 02:00:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 02:00:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 02:00:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 02:00:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 02:00:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 02:00:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 02:00:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 02:00:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 02:00:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 02:00:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 02:00:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 02:00:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 02:00:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 02:00:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 02:00:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 02:00:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 02:00:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 02:00:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 02:00:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 02:00:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 02:01:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 02:01:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 02:01:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 02:01:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 02:01:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 02:01:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 02:01:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 02:01:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 02:01:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 02:01:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 02:01:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 02:01:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 02:01:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 02:01:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 02:01:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 02:01:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 02:01:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 02:01:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 02:01:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 02:01:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 02:01:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 02:01:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 02:01:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 02:01:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 02:02:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 02:02:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 02:02:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 02:02:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 02:02:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 02:02:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 02:03:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 02:03:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 04:46:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 04:46:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 04:46:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 04:46:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 04:46:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 04:46:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 04:46:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 04:46:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 04:46:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 04:46:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 04:46:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 04:46:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 04:55:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 04:55:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 04:55:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-10 04:55:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 04:55:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 04:55:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 04:55:25] local.DEBUG: Product Image Details: Array ( [product_id] => 225 [image_name] => 2254905191712724925.png ) [2024-04-10 04:55:25] local.DEBUG: Product Image Details: Array ( [product_id] => 225 [image_name] => 11668710561712724925.png ) [2024-04-10 04:55:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 04:55:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 04:58:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 04:58:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 04:58:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 04:58:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 04:58:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 04:58:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:01:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:01:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:01:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:01:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:01:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:01:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:16:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:16:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:16:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:16:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:16:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:16:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:16:56] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"rakesh@gmail.com","name":"rakesh@gmail.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello rakesh@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: <\\/li>\\n <li>Invited By: sachin<\\/li>\\n <li>Role: Parent<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"https:\\/\\/play.google.com\\/store\\/apps\\/details?id=com.coins.college\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"https:\\/\\/apps.apple.com\\/us\\/app\\/coins-for-college\\/id6469045127\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-10 05:16:57] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.8d33b5d0-f6f9-11ee-bd1b-525400ae9113.18ec67011ad","object":"email"} [2024-04-10 05:17:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:17:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:17:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:17:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:17:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:17:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:17:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 05:17:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 05:17:11] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"rako@gmail.com","name":"rako@gmail.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello rako@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: <\\/li>\\n <li>Invited By: sachin<\\/li>\\n <li>Role: Child<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"https:\\/\\/play.google.com\\/store\\/apps\\/details?id=com.coins.college\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"https:\\/\\/apps.apple.com\\/us\\/app\\/coins-for-college\\/id6469045127\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-10 05:17:12] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.962aa1d0-f6f9-11ee-a69c-525400d4bb1c.18ec6704c6d","object":"email"} [2024-04-10 05:18:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:18:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:18:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:18:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:18:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:18:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:20:35] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"rako@g.com","name":"rako@g.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello rako@g.com,<\\/p>\\n <p>You have been invited to join the \\"\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: <\\/li>\\n <li>Invited By: sachin<\\/li>\\n <li>Role: Parent<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"https:\\/\\/play.google.com\\/store\\/apps\\/details?id=com.coins.college\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"https:\\/\\/apps.apple.com\\/us\\/app\\/coins-for-college\\/id6469045127\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-10 05:20:36] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.0fcf6110-f6fa-11ee-9b05-525400103106.18ec67369a1","object":"email"} [2024-04-10 05:20:41] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"rako@g.com","name":"rako@g.com"}}],"subject":"Group Invitation Update - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation Update - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation Update<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello rako@g.com,<\\/p>\\n <p>Your membership of the group with name \\"Sachin\\u0019s Group\\" has been updated.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: Sachin\\u0019s Group<\\/li>\\n <li>Updated Role in Group: Foster Care Agent<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"https:\\/\\/play.google.com\\/store\\/apps\\/details?id=com.coins.college\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"https:\\/\\/apps.apple.com\\/us\\/app\\/coins-for-college\\/id6469045127\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-10 05:20:41] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.1303d820-f6fa-11ee-9b05-525400103106.18ec6737ea2","object":"email"} [2024-04-10 05:22:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:22:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:22:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:22:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:22:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:22:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:23:44] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"rr@g.com","name":"rr@g.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello rr@g.com,<\\/p>\\n <p>You have been invited to join the \\"KKK\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: KKK<\\/li>\\n <li>Invited By: sachin<\\/li>\\n <li>Role: Child<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"https:\\/\\/play.google.com\\/store\\/apps\\/details?id=com.coins.college\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"https:\\/\\/apps.apple.com\\/us\\/app\\/coins-for-college\\/id6469045127\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-10 05:23:44] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.80187f10-f6fa-11ee-976c-5254004d4100.18ec6764981","object":"email"} [2024-04-10 05:23:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:23:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:23:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:23:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:23:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:23:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:24:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:24:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:24:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:24:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:24:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:24:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:27:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:27:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:27:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:27:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:27:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:27:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:28:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:28:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:28:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:28:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:28:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:28:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:28:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:28:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:28:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:28:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:28:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:28:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:28:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:28:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:28:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:28:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:28:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:28:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:29:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:29:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:29:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:29:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:29:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:29:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:29:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:29:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:29:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:29:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:29:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:29:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:30:10] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"jerry@gmail.com","name":"jerry@gmail.com"}}],"subject":"Group Invitation Update - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation Update - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation Update<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello jerry@gmail.com,<\\/p>\\n <p>Your membership of the group with name \\"Sachin\\u0019s Group\\" has been updated.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: Sachin\\u0019s Group<\\/li>\\n <li>Updated Role in Group: Child<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"https:\\/\\/play.google.com\\/store\\/apps\\/details?id=com.coins.college\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"https:\\/\\/apps.apple.com\\/us\\/app\\/coins-for-college\\/id6469045127\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-10 05:30:10] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.662c5670-f6fb-11ee-9b05-525400103106.18ec67c2d57","object":"email"} [2024-04-10 05:30:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:30:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:30:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:30:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:30:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:30:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:31:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:31:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:31:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 05:31:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:31:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:31:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:31:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 05:31:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:32:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:32:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:32:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:32:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:32:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:32:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:35:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:35:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:35:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 05:35:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:37:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:37:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:37:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:37:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:37:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:37:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:37:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 05:37:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 05:39:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:39:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:39:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:39:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:39:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:39:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:39:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 05:39:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 05:40:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:40:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:40:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:40:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:40:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:40:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:40:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 05:40:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 05:41:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:41:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:41:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:41:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:41:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:41:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:41:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 05:41:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 05:42:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:42:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:42:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:42:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:42:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:42:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:42:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 05:42:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:42:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 05:42:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:42:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 05:42:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 05:42:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 05:42:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:42:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 05:42:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 05:42:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:42:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:42:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 05:42:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:43:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:43:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:43:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 05:43:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:43:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 05:43:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 05:43:06] local.DEBUG: Current Balance: 100 [2024-04-10 05:43:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:43:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:43:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 05:43:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:43:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 05:43:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 05:43:11] local.DEBUG: Current Balance: 100 [2024-04-10 05:43:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:43:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:43:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 05:43:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:43:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 05:43:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 05:43:25] local.DEBUG: Current Balance: 100 [2024-04-10 05:43:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:43:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:43:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 05:43:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:43:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 05:43:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 05:43:31] local.DEBUG: Current Balance: 100 [2024-04-10 05:43:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 05:43:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:43:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 05:43:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:43:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 05:43:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 05:43:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 05:43:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:43:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:43:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:43:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 05:43:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:43:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:43:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:43:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:43:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:43:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:43:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:53:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:53:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:53:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:53:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:53:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:53:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:54:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-13' and `tasks`.`due_by` > '2024-04-10' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 05:54:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 05:54:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 05:54:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:54:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:54:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:54:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:54:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:54:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:54:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-10 05:54:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:54:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:54:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:54:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:54:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:54:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:56:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:56:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:56:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:56:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:56:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 05:56:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:56:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-10 05:57:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 05:57:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:57:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 05:57:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 05:57:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 05:57:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 05:57:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 05:57:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:00:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 06:00:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:00:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 06:00:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:00:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 06:00:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 06:00:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 06:00:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:00:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 06:00:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:00:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 06:00:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:00:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 06:00:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 06:00:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 06:00:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:00:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 06:00:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:00:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 06:00:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:06:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 06:06:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:06:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 06:06:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:06:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 06:06:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 06:06:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 06:06:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:07:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 06:07:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:07:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 06:07:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:07:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 06:07:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 06:07:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 06:07:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:07:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 06:07:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:07:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 06:07:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:07:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 06:07:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 06:07:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 06:07:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:07:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 06:07:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 06:07:48] local.DEBUG: Current Balance: 100 [2024-04-10 06:07:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 06:07:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 06:07:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 06:07:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 06:07:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 06:07:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:07:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 06:07:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:07:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 06:07:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 06:07:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 06:07:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:07:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 06:07:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:07:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 06:07:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:08:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 06:08:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:08:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 06:08:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:08:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 06:08:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 06:08:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 06:08:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:10:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 06:10:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:10:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 06:10:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:10:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 06:10:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 06:10:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 06:10:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:37:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 06:37:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:37:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 06:37:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:37:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 06:37:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:37:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-10 06:37:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 06:37:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:37:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 06:37:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:37:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 06:37:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:37:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-10 06:38:08] local.DEBUG: Product Image Details: Array ( [product_id] => 230 [image_name] => 9028760871712731088.png ) [2024-04-10 06:38:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 06:38:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 06:38:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:38:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 06:38:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:38:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 06:38:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:38:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 06:38:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 06:38:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 06:38:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:38:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 06:38:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:38:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 06:38:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:39:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 06:39:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:39:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 06:39:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:39:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 06:39:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 06:39:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 06:39:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:39:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-10 06:39:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 06:39:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:39:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 06:39:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:39:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 06:39:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:39:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 06:39:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 06:39:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-10 06:39:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 06:39:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 06:40:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 06:40:15] local.DEBUG: Product Image Details: Array ( [product_id] => 230 [image_name] => 15164947081712731215.png ) [2024-04-10 06:40:15] local.DEBUG: Product Image Details: Array ( [product_id] => 230 [image_name] => 1606821291712731215.png ) [2024-04-10 06:40:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 06:40:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 06:55:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 06:55:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:55:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 06:55:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:55:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 06:55:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:56:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 06:56:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:56:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 06:56:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 06:56:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 06:56:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-04-10 07:07:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-10 07:08:41] local.DEBUG: Product Image Details: Array ( [product_id] => 231 [image_name] => 844119251712732921.png ) [2024-04-10 07:08:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 07:08:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 07:08:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 07:08:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 07:08:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 07:08:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 07:08:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 07:16:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 07:16:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 07:16:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 07:16:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 07:16:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 07:16:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 07:16:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-10 07:19:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 07:19:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 07:19:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 07:19:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 07:19:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 07:19:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 07:19:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 07:19:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 07:19:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 07:19:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 07:19:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 07:19:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 07:19:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 07:19:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 07:19:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-10 07:19:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 07:19:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 07:19:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 07:19:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 07:19:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 07:19:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 07:34:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 07:34:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 07:34:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 07:34:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 07:34:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 07:34:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 07:34:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-10 07:34:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 07:34:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 07:34:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 07:34:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 07:34:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 07:34:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 07:38:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 07:38:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 07:38:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 07:38:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 07:38:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 07:38:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 07:38:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 07:38:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 07:38:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 07:38:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 07:38:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 07:38:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 07:38:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 07:38:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 07:38:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 07:38:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 07:41:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 07:41:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 07:41:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 07:41:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 07:41:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 07:41:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 07:41:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 07:41:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 08:34:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 08:34:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 08:34:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 08:34:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 08:34:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 08:34:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 08:34:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 08:34:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 08:40:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 08:40:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 08:40:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 08:40:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 08:40:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 08:40:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 08:40:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-10 08:41:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 08:41:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 08:41:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 08:41:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 08:41:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 08:41:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:00:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 09:00:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:00:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 09:00:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:00:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 09:00:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 09:00:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 09:00:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:01:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:01:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:01:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:01:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:01:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:01:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:02:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:02:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:02:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:02:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:02:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:02:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:03:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:03:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:03:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:03:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:03:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:03:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:05:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:05:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:05:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:05:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:05:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:05:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:11:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:11:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:11:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:11:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:11:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:11:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:11:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-10 09:11:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-10 09:13:11] local.DEBUG: Product Image Details: Array ( [product_id] => 232 [image_name] => 8554390061712740391.png ) [2024-04-10 09:13:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 09:13:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:13:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:13:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:13:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:13:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:13:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:13:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 09:13:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 09:18:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-10 09:19:31] local.DEBUG: Product Image Details: Array ( [product_id] => 233 [image_name] => 19735562921712740771.png ) [2024-04-10 09:19:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 09:19:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:19:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:19:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:19:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:19:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:19:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:19:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 09:19:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 09:19:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:19:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:19:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:19:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:19:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:19:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:20:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:20:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:20:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:20:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:20:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:20:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:20:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:20:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:20:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:20:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:20:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:20:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:20:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-10 09:21:48] local.DEBUG: Product Image Details: Array ( [product_id] => 234 [image_name] => 13484945031712740908.png ) [2024-04-10 09:21:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 09:21:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:21:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:21:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:21:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:21:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:21:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:26:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-13' and `tasks`.`due_by` > '2024-04-10' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 09:26:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 09:26:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 09:39:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 09:39:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:39:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 09:39:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:39:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 09:39:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 09:39:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 09:39:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:40:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 09:40:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:40:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 09:40:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:40:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 09:40:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 09:40:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 09:40:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:42:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 09:42:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:42:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 09:42:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:42:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 09:42:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 09:42:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 09:42:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:45:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:45:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:45:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:45:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:45:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:45:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:45:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:45:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:45:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:45:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:45:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:45:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:45:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-10 09:45:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 09:45:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:45:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 09:45:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:45:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 09:45:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 09:45:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 09:45:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:46:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 09:46:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:46:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 09:46:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:46:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 09:46:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 09:46:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 09:46:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:47:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:47:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:47:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:47:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:47:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:47:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:47:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 09:47:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:47:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 09:47:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:47:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 09:47:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 09:47:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 09:47:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:48:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:48:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:48:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:48:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:48:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:48:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:49:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-10 09:49:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-10 09:49:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 09:49:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:49:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 09:49:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:49:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 09:49:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 09:49:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 09:49:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:49:52] local.DEBUG: Product Image Details: Array ( [product_id] => 235 [image_name] => 18041543301712742592.png ) [2024-04-10 09:49:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 09:49:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:49:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:49:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:49:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:49:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:49:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:50:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:50:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:50:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:50:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:50:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:50:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:50:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:50:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:50:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:50:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:50:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:50:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:50:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 09:50:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 09:50:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 09:50:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:50:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 09:50:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:50:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 09:50:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 09:50:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 09:50:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:50:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:50:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:50:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:50:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:50:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:50:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:50:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:50:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:50:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:50:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:50:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:50:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:51:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-10 09:52:53] local.DEBUG: Product Image Details: Array ( [product_id] => 236 [image_name] => 1948534211712742773.png ) [2024-04-10 09:52:53] local.DEBUG: Product Image Details: Array ( [product_id] => 236 [image_name] => 10251519261712742773.png ) [2024-04-10 09:52:53] local.DEBUG: Product Image Details: Array ( [product_id] => 236 [image_name] => 9499397991712742773.png ) [2024-04-10 09:52:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 09:52:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:52:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:52:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:52:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:52:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:52:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:53:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 09:53:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 09:55:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 09:55:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:55:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 09:55:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:55:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 09:55:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 09:55:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 09:55:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:56:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:56:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:56:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:56:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:56:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:56:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:57:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:57:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:57:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:57:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:57:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 09:57:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:57:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-10 09:58:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 09:58:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:58:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 09:58:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:58:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 09:58:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 09:58:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 09:58:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 09:59:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-10 10:00:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:00:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:00:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:00:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:00:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:00:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:00:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-10 10:01:49] local.DEBUG: Product Image Details: Array ( [product_id] => 237 [image_name] => 4523889571712743309.png ) [2024-04-10 10:01:49] local.DEBUG: Product Image Details: Array ( [product_id] => 237 [image_name] => 15232282551712743309.png ) [2024-04-10 10:01:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 10:01:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:01:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:01:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:01:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:01:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:01:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:01:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 10:01:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 10:02:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 10:02:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:02:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 10:02:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:02:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 10:02:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 10:02:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 10:02:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:04:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 10:04:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:04:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 10:04:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:04:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 10:04:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 10:04:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 10:04:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:06:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 10:06:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:06:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 10:06:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:06:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 10:06:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 10:06:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 10:06:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:27:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:27:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:27:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:27:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:27:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:27:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:27:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-10 10:28:43] local.DEBUG: Product Image Details: Array ( [product_id] => 238 [image_name] => 2887904221712744923.png ) [2024-04-10 10:28:43] local.DEBUG: Product Image Details: Array ( [product_id] => 238 [image_name] => 18186359591712744923.png ) [2024-04-10 10:28:43] local.DEBUG: Product Image Details: Array ( [product_id] => 238 [image_name] => 5305852881712744923.png ) [2024-04-10 10:28:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 10:28:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:28:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:28:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:28:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:28:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:28:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:28:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 10:28:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 10:30:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:30:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:30:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:30:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:30:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:30:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:30:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-10 10:31:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:31:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:31:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:31:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:31:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:31:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:35:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 10:35:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 10:35:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:35:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:35:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:35:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:35:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:35:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:38:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:38:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:38:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:38:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:38:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:38:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:38:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-10 10:38:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:38:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:38:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:38:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:38:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:38:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:39:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-10 10:39:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-10 10:40:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:40:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:40:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:40:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:40:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:40:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:41:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:41:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:41:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:41:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:41:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:41:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:41:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-10 10:42:17] local.DEBUG: Product Image Details: Array ( [product_id] => 239 [image_name] => 4512840901712745737.png ) [2024-04-10 10:42:17] local.DEBUG: Product Image Details: Array ( [product_id] => 239 [image_name] => 16628806191712745737.png ) [2024-04-10 10:42:17] local.DEBUG: Product Image Details: Array ( [product_id] => 239 [image_name] => 2849755791712745737.png ) [2024-04-10 10:42:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 10:42:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:42:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:42:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 10:42:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:42:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:42:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:42:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:42:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:42:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:42:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:42:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:42:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:42:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 10:42:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:42:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 10:42:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 10:44:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:44:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:44:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:44:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:44:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:44:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:44:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-10 10:44:48] local.DEBUG: Product Image Details: Array ( [product_id] => 240 [image_name] => 18136362121712745888.png ) [2024-04-10 10:44:48] local.DEBUG: Product Image Details: Array ( [product_id] => 240 [image_name] => 14873384981712745888.png ) [2024-04-10 10:44:49] local.DEBUG: Product Image Details: Array ( [product_id] => 240 [image_name] => 7284214941712745888.png ) [2024-04-10 10:44:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 10:44:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:44:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:44:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:44:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:44:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:44:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:44:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 10:44:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 10:45:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:45:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:45:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:45:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:45:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:45:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:45:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-10 10:48:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 10:48:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:48:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 10:48:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:48:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 10:48:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 10:48:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 10:48:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:49:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 10:49:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:49:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 10:49:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:49:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 10:49:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 10:49:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 10:49:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:55:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:55:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:55:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:55:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:55:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:55:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:55:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-10 10:55:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 10:55:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:55:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 10:55:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:55:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 10:55:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 10:55:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 10:55:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:55:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:55:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:55:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:55:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:55:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:55:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:55:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-10 10:57:10] local.DEBUG: Product Image Details: Array ( [product_id] => 241 [image_name] => 14007134111712746630.png ) [2024-04-10 10:57:10] local.DEBUG: Product Image Details: Array ( [product_id] => 241 [image_name] => 15096552031712746630.png ) [2024-04-10 10:57:10] local.DEBUG: Product Image Details: Array ( [product_id] => 241 [image_name] => 2924778621712746630.png ) [2024-04-10 10:57:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 10:57:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:57:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:57:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:57:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:57:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:57:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:57:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 10:57:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 10:57:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 10:57:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 10:58:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 10:58:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:58:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 10:58:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:58:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 10:58:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 10:58:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 10:58:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:59:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:59:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:59:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:59:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:59:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 10:59:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 10:59:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-10 11:00:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 11:00:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:00:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 11:00:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:00:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 11:00:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 11:00:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 11:00:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:00:48] local.DEBUG: Product Image Details: Array ( [product_id] => 242 [image_name] => 11224256191712746848.png ) [2024-04-10 11:00:49] local.DEBUG: Product Image Details: Array ( [product_id] => 242 [image_name] => 10207750331712746848.png ) [2024-04-10 11:00:49] local.DEBUG: Product Image Details: Array ( [product_id] => 242 [image_name] => 2884500441712746849.png ) [2024-04-10 11:00:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 11:00:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 11:00:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:00:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 11:00:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:00:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 11:00:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:01:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 11:01:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 11:02:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 11:02:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:02:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 11:02:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:02:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 11:02:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:02:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 11:02:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 11:02:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 11:02:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:02:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 11:02:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:02:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 11:02:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:02:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 11:02:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:02:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 11:02:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:02:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 11:02:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 11:02:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 11:02:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:03:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 11:03:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:03:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 11:03:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:03:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 11:03:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 11:03:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 11:03:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:08:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 11:08:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:08:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 11:08:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:08:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 11:08:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 11:08:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 11:08:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:10:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 11:10:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:10:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 11:10:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:10:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 11:10:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 11:10:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 11:10:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:10:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 11:10:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:10:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 11:10:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:10:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 11:10:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 11:10:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 11:10:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:12:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 11:12:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:12:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 11:12:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:12:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 11:12:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 11:12:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 11:12:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:14:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 11:14:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:14:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 11:14:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:14:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 11:14:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 11:14:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 11:14:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:16:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 11:16:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:16:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 11:16:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:16:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 11:16:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 11:16:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 11:16:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:16:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 11:16:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:16:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 11:16:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:16:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 11:16:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 11:16:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 11:16:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:19:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 11:19:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:19:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 11:19:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:19:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 11:19:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 11:19:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 11:19:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:26:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 11:26:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:26:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 11:26:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:26:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 11:26:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 11:26:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 11:26:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:26:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 11:26:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:26:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 11:26:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:30:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 11:30:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:30:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 11:30:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:35:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 11:35:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:35:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 11:35:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:35:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 11:35:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 11:35:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 11:35:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:42:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 11:42:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:42:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 11:42:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:42:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 11:42:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 11:42:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 11:42:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:44:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 11:44:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:44:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 11:44:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:44:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 11:44:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 11:44:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 11:44:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:44:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 11:44:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:44:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 11:44:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:44:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 11:44:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:44:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-13' and `tasks`.`due_by` > '2024-04-10' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 11:44:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 11:44:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 11:45:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 11:45:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:45:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 11:45:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:45:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 11:45:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:45:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-10 11:45:36] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"jerry@gmail.com","name":"Jerry Smith"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Jerry Smith,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> test<\\/li>\\n <li><strong>Assigned By:<\\/strong> Jerry Smith<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-10 11:45:37] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.d8ed54a0-f72f-11ee-99cc-525400f92481.18ec7d3e6ea","object":"email"} [2024-04-10 11:45:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 11:46:00] local.DEBUG: Product Image Details: Array ( [product_id] => 243 [image_name] => 15207391271712749560.png ) [2024-04-10 11:46:00] local.DEBUG: Product Image Details: Array ( [product_id] => 243 [image_name] => 13750630301712749560.png ) [2024-04-10 11:46:00] local.DEBUG: Product Image Details: Array ( [product_id] => 243 [image_name] => 14336611291712749560.png ) [2024-04-10 11:46:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 11:46:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 11:46:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:46:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 11:46:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:46:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 11:46:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:46:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 11:46:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 11:46:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 11:46:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:46:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 11:46:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:46:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 11:46:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:46:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 11:46:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:46:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 11:46:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:46:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 11:46:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 11:46:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 11:46:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:46:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 11:46:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:46:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 11:46:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:46:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 11:46:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:47:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 11:47:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:47:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 11:47:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:47:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 11:47:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:59:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 11:59:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:59:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 11:59:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 11:59:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 11:59:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:01:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:01:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:01:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:01:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:01:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:01:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:01:32] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"john@gmail.com","name":"john@gmail.com"}}],"subject":"Group Invitation Update - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation Update - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation Update<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello john@gmail.com,<\\/p>\\n <p>Your membership of the group with name \\"Sachin\\u0019s Group\\" has been updated.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: Sachin\\u0019s Group<\\/li>\\n <li>Updated Role in Group: Child<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"https:\\/\\/play.google.com\\/store\\/apps\\/details?id=com.coins.college\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"https:\\/\\/apps.apple.com\\/us\\/app\\/coins-for-college\\/id6469045127\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-10 12:01:32] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.1287a8d0-f732-11ee-addd-5254004d4100.18ec7e27bdd","object":"email"} [2024-04-10 12:05:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:05:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:05:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:05:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:05:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:05:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:06:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-10 12:06:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:06:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:06:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:06:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:06:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:06:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:06:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-10 12:07:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:07:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:07:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:07:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:07:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:07:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:07:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-10 12:07:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:07:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:07:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:07:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:07:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:07:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:08:02] local.DEBUG: Product Image Details: Array ( [product_id] => 244 [image_name] => 10462781901712750882.png ) [2024-04-10 12:08:02] local.DEBUG: Product Image Details: Array ( [product_id] => 244 [image_name] => 8106922111712750882.png ) [2024-04-10 12:08:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 12:08:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:08:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:08:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:08:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:08:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:08:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:08:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 12:08:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 12:09:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:09:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:09:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:09:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:09:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:09:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:09:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:09:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:09:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:09:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:09:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:09:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:09:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-10 12:10:14] local.DEBUG: Product Image Details: Array ( [product_id] => 245 [image_name] => 18566833571712751014.png ) [2024-04-10 12:10:14] local.DEBUG: Product Image Details: Array ( [product_id] => 245 [image_name] => 12405808691712751014.png ) [2024-04-10 12:10:14] local.DEBUG: Product Image Details: Array ( [product_id] => 245 [image_name] => 9978991712751014.png ) [2024-04-10 12:10:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 12:10:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:10:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:10:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:10:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:10:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:10:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:10:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 12:10:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 12:10:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:10:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:10:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:10:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:10:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:10:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:11:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:11:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:11:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:11:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:11:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:11:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:18:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:18:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:18:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:18:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:18:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:18:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:18:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-10 12:21:19] local.DEBUG: Product Image Details: Array ( [product_id] => 246 [image_name] => 9762129381712751679.png ) [2024-04-10 12:21:19] local.DEBUG: Product Image Details: Array ( [product_id] => 246 [image_name] => 4326420821712751679.png ) [2024-04-10 12:21:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 12:21:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:21:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:21:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:21:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:21:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:21:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:21:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 12:21:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 12:25:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:25:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:25:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:25:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:25:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:25:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:25:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:25:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:25:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:25:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:25:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:25:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:26:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:26:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:26:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:26:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:26:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:26:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:28:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:28:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:28:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:28:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:28:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:28:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:29:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 12:29:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:29:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 12:29:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:29:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 12:29:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 12:29:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 12:29:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:30:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:30:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:30:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 12:30:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:32:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 12:32:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:32:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 12:32:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:32:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 12:32:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 12:32:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 12:32:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:33:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 12:33:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:33:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 12:33:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:33:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 12:33:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 12:33:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 12:33:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:37:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:37:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:37:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:37:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:37:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:37:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:37:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-13' and `tasks`.`due_by` > '2024-04-10' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 12:37:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 12:37:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 12:37:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 12:37:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-10 12:38:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:38:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:38:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:38:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:38:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:38:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:39:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:39:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:39:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:39:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:39:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:39:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:39:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:39:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:39:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:39:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:39:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:39:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:39:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-13' and `tasks`.`due_by` > '2024-04-10' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 12:39:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 12:39:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 12:39:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 12:39:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-10 12:42:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:42:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:42:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:42:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:42:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:42:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:42:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-13' and `tasks`.`due_by` > '2024-04-10' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 12:42:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 12:42:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 12:42:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 12:42:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-10 12:44:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 12:44:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:44:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 12:44:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:44:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 12:44:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 12:44:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 12:44:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:45:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 12:45:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:45:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 12:45:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:45:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 12:45:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 12:45:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 12:45:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:45:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 12:45:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:45:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 12:45:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:45:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 12:45:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 12:45:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 12:45:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:45:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 12:45:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:45:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 12:45:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:45:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 12:45:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 12:45:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 12:45:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:45:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 12:45:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 12:45:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 12:45:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 12:45:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 12:45:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:45:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 12:45:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:45:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 12:45:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 12:45:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 12:45:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:45:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 12:45:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:45:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 12:45:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:45:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 12:45:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 12:45:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 12:45:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:45:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 12:45:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:45:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 12:45:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:45:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 12:45:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 12:45:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 12:45:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:45:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 12:45:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 12:45:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 12:45:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 12:46:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 12:46:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:46:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 12:46:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:46:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 12:46:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 12:46:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 12:46:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:46:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 12:46:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 12:46:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 12:46:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 12:46:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 12:46:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:46:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 12:46:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:46:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 12:46:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 12:46:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 12:46:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:46:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 12:46:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 12:46:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 12:46:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 12:46:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 12:46:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:46:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 12:46:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:46:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 12:46:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 12:46:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 12:46:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:46:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 12:46:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 12:46:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 12:46:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 12:46:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 12:46:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:46:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 12:46:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:46:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 12:46:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 12:46:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 12:46:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:46:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-13' and `tasks`.`due_by` > '2024-04-10' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 12:46:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 12:46:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 12:46:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 12:46:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:46:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 12:46:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:46:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 12:46:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 12:46:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 12:46:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:46:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 12:46:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 12:46:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 12:46:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 12:46:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 12:46:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 12:46:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:46:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 12:46:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:46:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 12:46:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 12:46:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 12:46:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:46:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-13' and `tasks`.`due_by` > '2024-04-10' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 12:46:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 12:46:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 12:47:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 12:47:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 12:49:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 12:49:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:49:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 12:49:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:49:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 12:49:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 12:49:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 12:49:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:49:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-13' and `tasks`.`due_by` > '2024-04-10' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 12:49:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 12:49:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 12:50:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:50:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:50:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:50:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:50:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:50:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:50:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-13' and `tasks`.`due_by` > '2024-04-10' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 12:50:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 12:50:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 12:50:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 12:50:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 12:51:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:51:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:51:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:51:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:51:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:51:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:51:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-13' and `tasks`.`due_by` > '2024-04-10' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 12:51:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 12:51:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 12:51:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 12:55:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:55:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:55:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:55:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:55:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:55:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:55:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-13' and `tasks`.`due_by` > '2024-04-10' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 12:55:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 12:55:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 12:55:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 12:55:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 12:55:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 12:55:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 12:55:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 12:56:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:56:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:56:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:56:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:56:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 12:56:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:57:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 12:57:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:57:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 12:57:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:57:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 12:57:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 12:57:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 12:57:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:57:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 12:57:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 12:57:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 12:57:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 12:57:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 12:57:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 12:58:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 12:58:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:58:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 12:58:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:58:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 12:58:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 12:58:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 12:58:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:58:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 12:58:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 12:58:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 12:58:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 12:58:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 12:58:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:58:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 12:58:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:58:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 12:58:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 12:58:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 12:58:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 12:59:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 13:00:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 13:00:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:00:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 13:00:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:00:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 13:00:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 13:00:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 13:00:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:00:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-13' and `tasks`.`due_by` > '2024-04-10' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 13:00:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 13:00:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 13:00:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 13:00:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 13:00:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 13:00:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 13:00:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 13:01:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 13:01:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:01:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 13:01:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:01:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 13:01:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 13:01:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 13:01:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:01:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 13:01:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 13:01:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 13:01:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 13:01:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 13:02:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 13:02:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:02:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 13:02:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:02:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 13:02:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 13:02:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 13:02:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:02:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 13:02:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 13:02:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 13:02:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 13:02:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 13:04:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 13:05:07] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"jerry@gmail.com","name":"Jerry Smith"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Jerry Smith,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> test<\\/li>\\n <li><strong>Assigned By:<\\/strong> Jerry Smith<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-10 13:05:07] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.f46f1af0-f73a-11ee-a07a-5254000b1a0e.18ec81cb21f","object":"email"} [2024-04-10 13:06:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 13:06:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:06:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 13:06:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:06:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 13:06:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 13:06:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 13:06:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:07:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 13:07:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:07:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 13:07:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:07:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 13:07:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 13:07:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 13:07:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:07:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-13' and `tasks`.`due_by` > '2024-04-10' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 13:07:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 13:07:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 13:07:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 13:09:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 13:09:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 13:09:36] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"jerry@gmail.com","name":"Jerry Smith"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Jerry Smith,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Test addi<\\/li>\\n <li><strong>Assigned By:<\\/strong> Jerry Smith<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-10 13:09:36] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.94c28050-f73b-11ee-a07a-5254000b1a0e.18ec820ccd5","object":"email"} [2024-04-10 13:09:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 13:09:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 13:10:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 13:10:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 13:11:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 13:11:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:11:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 13:11:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:11:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 13:11:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 13:11:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 13:11:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:11:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 13:11:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 13:11:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 13:11:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 13:11:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 13:11:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 13:11:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 13:11:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:11:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 13:11:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:11:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 13:11:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 13:11:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 13:11:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:11:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 13:11:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 13:11:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 13:11:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 13:11:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 13:11:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:11:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 13:11:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:11:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 13:11:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 13:11:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 13:11:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:11:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 13:11:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 13:11:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 13:11:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 13:11:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 13:11:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 13:11:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 13:11:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:11:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 13:11:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:11:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 13:11:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 13:11:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 13:11:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:11:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 13:11:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 13:11:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 13:11:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 13:11:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 13:11:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:11:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 13:11:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:11:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 13:11:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 13:11:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 13:11:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:11:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 13:11:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:11:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 13:11:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:11:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 13:11:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 13:11:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 13:11:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:11:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 13:11:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:11:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 13:11:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:11:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 13:11:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 13:11:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 13:11:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:12:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 13:12:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:12:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 13:12:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:12:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 13:12:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 13:12:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 13:12:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:12:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 13:12:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:12:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 13:12:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:12:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 13:12:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 13:12:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 13:12:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:12:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 13:12:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:12:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 13:12:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:12:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 13:12:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 13:12:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 13:12:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:13:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 13:13:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 13:13:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 13:13:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 13:13:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 13:13:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 13:13:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 13:13:50] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"jerry@gmail.com","name":"Jerry Smith"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Jerry Smith,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Spend 20 minutes on Ogstar for a month<\\/li>\\n <li><strong>Assigned By:<\\/strong> Jerry Smith<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-10 13:13:50] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.2c0186a0-f73c-11ee-a17c-525400fa05f6.18ec824ac0a","object":"email"} [2024-04-10 13:13:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 13:18:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 13:18:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:18:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 13:18:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:18:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 13:18:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:18:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 13:18:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:18:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 13:18:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:18:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 13:18:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:18:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 13:18:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:18:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 13:18:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:18:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 13:18:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:18:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-10 13:19:55] local.DEBUG: Product Image Details: Array ( [product_id] => 247 [image_name] => 13345210131712755195.png ) [2024-04-10 13:19:55] local.DEBUG: Product Image Details: Array ( [product_id] => 247 [image_name] => 15853599341712755195.png ) [2024-04-10 13:19:55] local.DEBUG: Product Image Details: Array ( [product_id] => 247 [image_name] => 21356214601712755195.png ) [2024-04-10 13:19:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 13:19:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 13:19:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:19:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 13:19:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:19:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 13:19:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:20:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 13:20:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 13:20:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 13:20:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:20:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 13:20:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:20:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 13:20:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:20:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 13:20:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 13:20:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 13:20:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:20:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 13:20:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:20:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 13:20:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:20:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-10 13:20:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-10 13:20:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 13:20:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:20:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 13:20:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:20:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 13:20:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:24:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 13:24:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:24:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 13:24:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:24:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 13:24:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:25:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 13:25:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:25:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 13:25:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:25:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 13:25:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:26:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 13:26:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:26:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 13:26:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:26:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 13:26:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:26:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 13:26:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:26:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 13:26:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 13:26:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 13:26:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 14:19:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 14:19:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 14:19:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 14:19:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 14:19:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 14:19:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 14:20:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 14:20:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 14:20:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 14:20:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 14:20:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 14:20:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 20:34:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 20:34:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 20:34:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 20:34:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 20:34:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-10 20:34:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 20:36:38] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"Christal@gmail.com","name":"Christal Samuel"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Christal Samuel,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">27727<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-10 20:36:38] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.08199870-f77a-11ee-9b18-525400d4bb1c.18ec9ba1377","object":"email"} [2024-04-10 20:37:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 20:37:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 20:37:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 20:37:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 20:37:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 20:37:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 20:37:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 20:37:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 20:39:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-10 20:39:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 20:39:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-10 20:39:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 20:39:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-10 20:39:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-10 20:39:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-09' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-10 20:39:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-10 20:39:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-13' and `tasks`.`due_by` > '2024-04-10' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 20:39:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-10 20:39:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-11 05:02:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-11 05:02:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 05:02:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-11 05:02:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 05:02:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-11 05:02:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-11 05:02:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 05:02:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 05:03:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 05:03:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 05:03:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 05:03:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 05:03:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-11 05:03:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 05:03:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-11 05:03:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 05:03:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-11 05:03:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-11 05:03:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 05:03:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 05:03:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-14' and `tasks`.`due_by` > '2024-04-11' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-11 05:03:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-11 05:03:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-11 05:03:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-11 05:03:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-11 05:03:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 05:03:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-11 05:03:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 05:03:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-11 05:03:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-11 05:03:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 05:03:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 05:03:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-14' and `tasks`.`due_by` > '2024-04-11' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-11 05:03:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-11 05:03:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-11 05:04:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-11 05:04:04] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"sachin@gmail.com","name":"Sachin"}}],"subject":"Task Claimed","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Pending Approval<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Pending Approval<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Sachin,<\\/p>\\n <p>Your child has completed a task and it is now pending your approval:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Test addi<\\/li>\\n <li><strong>Assigned To:<\\/strong> Jerry Smith<\\/li>\\n <\\/ul>\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-11 05:04:04] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.eb144620-f7c0-11ee-bfc4-525400d6cd4f.18ecb8aa382","object":"email"} [2024-04-11 05:04:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-11 05:04:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 05:04:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 05:04:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 05:04:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 05:06:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-11 05:06:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 05:06:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-11 05:06:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 05:06:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-11 05:06:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-11 05:06:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 05:06:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 05:08:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 05:08:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 05:08:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 05:08:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 05:08:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 05:08:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 05:13:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 05:13:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 05:13:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 05:13:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 05:13:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 05:13:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 05:55:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 05:55:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 05:55:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 05:55:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 05:59:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 05:59:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 05:59:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 05:59:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 05:59:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 05:59:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 05:59:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-11 05:59:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 05:59:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-11 05:59:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 05:59:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-11 05:59:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-11 05:59:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 05:59:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:01:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:01:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:01:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 06:01:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:01:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:01:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:01:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 5 [2024-04-11 06:01:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:02:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-11 06:02:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:02:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:02:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 06:02:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:02:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:02:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:02:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 06:02:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:02:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:02:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:02:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 06:02:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:02:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:02:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:02:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 06:02:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:03:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 06:03:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 06:03:00] local.DEBUG: Current Balance: 100 [2024-04-11 06:03:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 06:03:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 06:03:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 06:03:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 06:03:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:03:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:03:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 06:03:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:03:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 06:03:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 06:03:58] local.DEBUG: Current Balance: 100 [2024-04-11 06:04:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:04:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:04:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 06:04:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:04:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 06:04:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 06:04:05] local.DEBUG: Current Balance: 100 [2024-04-11 06:04:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:04:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:04:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 06:04:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:04:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 06:04:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 06:04:13] local.DEBUG: Current Balance: 100 [2024-04-11 06:04:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:04:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:04:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 06:04:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:05:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:05:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:05:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 06:05:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:05:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:05:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:05:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 06:05:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:05:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:05:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:05:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 06:05:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:06:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-11 06:06:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:06:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-11 06:06:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:06:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-11 06:06:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-11 06:06:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 06:06:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:21:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-11 06:21:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:21:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:21:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 06:21:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:31:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:31:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:31:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 06:31:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:31:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:31:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:31:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 06:31:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:31:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:31:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:31:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 06:31:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:34:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:34:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:34:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 5 [2024-04-11 06:34:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:36:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:36:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:36:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 5 [2024-04-11 06:36:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:37:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:37:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:37:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 5 [2024-04-11 06:37:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:39:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:39:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:39:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 5 [2024-04-11 06:39:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:40:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:40:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:40:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 5 [2024-04-11 06:40:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:42:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:42:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:42:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 5 [2024-04-11 06:42:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:42:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:42:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:42:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:42:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:42:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:42:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:42:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-11 06:42:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:42:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:42:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 5 [2024-04-11 06:42:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:42:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:42:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:42:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 5 [2024-04-11 06:42:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:42:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:42:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:42:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:42:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:42:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:42:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:42:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-11 06:43:09] local.DEBUG: Product Image Details: Array ( [product_id] => 248 [image_name] => 2859242411712817789.png ) [2024-04-11 06:43:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 06:43:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:43:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:43:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:43:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:43:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:43:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:47:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:47:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:47:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 5 [2024-04-11 06:47:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:47:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 06:47:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 06:47:41] local.DEBUG: Current Balance: 100 [2024-04-11 06:47:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:47:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:47:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 06:47:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:48:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:48:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:48:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 06:48:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:49:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:49:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:49:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 5 [2024-04-11 06:49:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:49:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:49:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:49:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 06:49:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:50:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:50:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:50:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 06:50:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:50:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:50:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:50:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 5 [2024-04-11 06:50:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:51:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:51:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:51:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 06:51:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:56:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:56:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:56:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 06:56:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:56:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:56:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:56:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 06:56:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:56:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:56:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:56:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 06:56:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:56:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:56:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:56:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 06:56:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:56:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:56:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:56:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 06:56:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:56:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:56:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:56:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 06:56:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:59:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:59:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:59:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 06:59:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:59:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 06:59:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 06:59:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 06:59:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-04-11 07:11:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:11:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:11:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 07:11:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:11:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:11:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:11:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 07:11:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:12:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:12:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:12:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:12:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:12:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:12:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:12:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:12:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:12:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:12:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:12:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:12:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:14:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:14:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:14:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:14:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:14:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:14:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:14:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:14:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:14:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:14:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:14:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:14:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:15:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:15:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:15:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 07:15:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:15:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:15:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:15:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 07:15:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:15:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:15:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:15:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 07:15:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:15:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:15:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:15:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 07:15:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:15:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:15:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:15:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 07:15:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:15:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:15:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:15:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 07:15:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:15:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:15:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:15:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:15:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:15:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:15:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:15:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:15:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:15:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 07:15:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:15:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:15:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:15:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 07:15:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:15:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:15:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:15:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 07:15:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:15:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:15:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:15:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 07:15:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:17:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:17:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:17:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 07:17:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:17:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:17:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:17:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 07:17:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:17:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:17:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:17:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 07:17:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:18:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:18:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:18:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 07:18:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:18:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:18:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:18:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:18:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:18:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:18:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:18:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:18:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:18:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 07:18:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:19:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:19:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:19:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 07:19:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:19:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:19:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:19:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 07:19:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:19:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:19:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:19:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 07:19:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:19:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:19:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:19:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 07:19:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:19:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:19:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:19:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 07:19:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:20:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:20:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:20:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 07:20:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:20:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:20:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:20:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 07:20:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:20:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:20:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:20:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 07:20:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:20:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:20:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:20:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 07:20:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:20:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:20:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:20:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 07:20:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:20:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:20:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:20:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 07:20:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:21:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:21:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:21:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:21:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:21:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:21:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:21:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:21:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:21:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 07:21:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:21:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:21:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:21:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 07:21:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:21:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:21:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:21:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 07:21:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:21:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:21:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:21:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 07:21:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:21:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:21:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:21:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 07:21:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:21:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:21:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:21:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 07:21:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:21:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:21:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:21:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 07:21:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:21:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:21:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:21:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 07:21:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:22:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:22:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:22:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 07:22:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:22:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:22:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:22:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 07:22:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:22:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:22:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:22:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 07:22:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:22:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:22:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:22:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 07:22:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:22:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:22:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:22:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 07:22:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:22:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:22:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:22:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 07:22:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:22:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:22:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:22:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 07:22:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:22:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:22:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:22:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 07:22:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:22:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:22:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 07:22:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:22:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:22:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:22:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:22:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:22:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:22:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:22:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:22:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:22:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:22:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:22:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:22:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:23:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:23:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:23:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 07:23:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:23:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:23:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:23:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 07:23:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:23:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:23:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:23:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 07:23:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:23:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:23:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:23:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 07:23:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:24:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 07:24:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 07:24:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 07:24:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 07:26:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:26:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:26:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 07:26:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:26:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 07:26:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 07:26:55] local.DEBUG: Current Balance: 100 [2024-04-11 07:27:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:27:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:27:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:27:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:27:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:27:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:27:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:27:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:27:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:27:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 07:27:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 07:27:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 08:34:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 08:35:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 08:35:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 08:35:05] local.DEBUG: Current Balance: 0 [2024-04-11 08:47:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 08:47:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 08:47:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 08:47:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 08:49:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 08:49:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 08:49:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 08:49:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 08:51:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 08:51:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 08:51:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 08:51:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 08:51:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 08:51:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 08:51:03] local.DEBUG: Current Balance: 100 [2024-04-11 08:53:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 08:53:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 08:53:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 08:53:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 08:53:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 08:53:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 08:53:40] local.DEBUG: Current Balance: 100 [2024-04-11 09:11:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 09:11:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 09:11:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 09:11:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 09:11:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 09:11:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 09:11:59] local.DEBUG: Current Balance: 100 [2024-04-11 09:12:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 09:12:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 09:12:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 09:12:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 09:29:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 09:29:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 09:29:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 09:29:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 09:29:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 09:29:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 09:29:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 09:29:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 09:29:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 09:29:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 09:29:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 09:29:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 09:29:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 09:29:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 09:29:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 09:29:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 09:29:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 09:29:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 09:29:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 09:29:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 09:29:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 09:29:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 09:29:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 09:29:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 09:51:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-11 09:53:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-11 10:04:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:04:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:04:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:04:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:05:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-11 10:06:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:06:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:06:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:06:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:06:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 10:06:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 10:06:34] local.DEBUG: Current Balance: 100 [2024-04-11 10:06:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:06:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:06:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:06:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:06:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-14' and `tasks`.`due_by` > '2024-04-11' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-11 10:06:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-11' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-11 10:06:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:06:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:06:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:06:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:06:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-11 10:07:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:07:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:07:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:07:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:07:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 10:07:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 10:07:05] local.DEBUG: Current Balance: 100 [2024-04-11 10:07:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:07:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:07:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:07:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:07:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 10:07:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 10:07:19] local.DEBUG: Current Balance: 100 [2024-04-11 10:07:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:07:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:07:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:07:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:07:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-11 10:08:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:08:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:08:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:08:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:08:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 10:08:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 10:08:21] local.DEBUG: Current Balance: 100 [2024-04-11 10:08:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:08:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:08:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:08:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:09:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-11 10:09:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 10:09:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 10:09:34] local.DEBUG: Current Balance: 100 [2024-04-11 10:09:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-11 10:09:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:09:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:09:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:09:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:10:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:10:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:10:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 10:10:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:10:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:10:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:10:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 10:10:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:10:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:10:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:10:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:10:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:10:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 10:10:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 10:10:24] local.DEBUG: Current Balance: 100 [2024-04-11 10:12:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-14' and `tasks`.`due_by` > '2024-04-11' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-11 10:12:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-11' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-11 10:12:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-11 10:12:06] local.DEBUG: task visible_to: [2024-04-11 10:12:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-14' and `tasks`.`due_by` > '2024-04-11' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-11 10:12:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-11' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-11 10:12:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:12:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:12:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:12:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:12:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 10:12:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 10:12:45] local.DEBUG: Current Balance: 100 [2024-04-11 10:13:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:13:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:13:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:13:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:13:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 10:13:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 10:13:30] local.DEBUG: Current Balance: 100 [2024-04-11 10:13:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:13:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:13:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:13:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:13:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 10:13:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 10:13:36] local.DEBUG: Current Balance: 100 [2024-04-11 10:13:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:13:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:13:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:13:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:13:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 10:13:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 10:13:41] local.DEBUG: Current Balance: 100 [2024-04-11 10:13:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:13:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:13:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:13:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:13:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 10:13:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 10:13:45] local.DEBUG: Current Balance: 100 [2024-04-11 10:13:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:13:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:13:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:13:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:13:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 10:13:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 10:13:50] local.DEBUG: Current Balance: 100 [2024-04-11 10:13:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:13:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:13:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:13:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:13:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 10:13:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 10:13:55] local.DEBUG: Current Balance: 100 [2024-04-11 10:13:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:13:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:13:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:13:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:14:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:14:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:14:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:14:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:15:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:15:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:15:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:15:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:18:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:18:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:18:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:18:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:21:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:21:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:21:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 5 [2024-04-11 10:21:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:25:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-11 10:26:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-11 10:27:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:27:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:27:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:27:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:27:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:27:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:30:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:30:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:30:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:30:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:30:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 10:30:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 10:30:58] local.DEBUG: Current Balance: 100 [2024-04-11 10:30:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:30:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:30:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:30:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:32:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:32:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:32:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:32:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:32:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:32:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:32:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:32:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:33:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:33:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:33:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:33:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:33:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:33:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:33:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:33:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:33:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:33:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:33:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:33:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:33:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:33:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:33:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:33:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:33:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:33:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:33:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:33:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:35:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:35:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:35:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:35:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:35:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-11 10:35:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:35:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:35:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:35:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:36:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-11 10:38:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:38:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:38:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:38:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:38:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:38:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:38:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:38:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:38:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:38:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:38:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:38:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:39:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:39:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:39:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:39:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:39:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 10:39:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 10:39:18] local.DEBUG: Current Balance: 100 [2024-04-11 10:39:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:39:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:39:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:39:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:40:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:40:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:40:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:40:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:40:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 10:40:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 10:40:21] local.DEBUG: Current Balance: 100 [2024-04-11 10:40:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 10:40:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 10:40:36] local.DEBUG: Current Balance: 100 [2024-04-11 10:40:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:40:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:40:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:40:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:41:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-11 10:43:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:43:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:43:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:43:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:43:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-11 10:44:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:44:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:44:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:44:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:44:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 10:44:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 10:44:48] local.DEBUG: Current Balance: 100 [2024-04-11 10:44:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:44:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:44:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:44:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:45:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-11 10:45:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:45:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:45:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:45:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:45:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 10:45:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 10:45:17] local.DEBUG: Current Balance: 100 [2024-04-11 10:45:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:45:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:45:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:45:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:45:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-11 10:45:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-11 10:45:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 10:45:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 10:45:28] local.DEBUG: Current Balance: 100 [2024-04-11 10:45:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-11 10:45:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 10:45:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 10:45:30] local.DEBUG: Current Balance: 100 [2024-04-11 10:45:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-11 10:45:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:45:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:45:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:45:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:45:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-11 10:45:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:45:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:45:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:45:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:45:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-11 10:46:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:46:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:46:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:46:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:46:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 10:46:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 10:46:43] local.DEBUG: Current Balance: 100 [2024-04-11 10:46:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 10:46:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 10:46:48] local.DEBUG: Current Balance: 100 [2024-04-11 10:46:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:46:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:46:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:46:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:46:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-11 10:46:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:46:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:46:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:46:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:46:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:46:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:46:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:46:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:47:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 10:47:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 10:47:06] local.DEBUG: Current Balance: 100 [2024-04-11 10:47:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:47:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:47:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:47:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:47:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-14' and `tasks`.`due_by` > '2024-04-11' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-11 10:47:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-11' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-11 10:47:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-14' and `tasks`.`due_by` > '2024-04-11' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-11 10:47:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-11' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-11 10:48:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:48:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:48:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:48:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:48:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-11 10:48:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:48:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:48:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:48:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:49:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-11 10:49:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 10:49:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 10:49:45] local.DEBUG: Current Balance: 100 [2024-04-11 10:49:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:49:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:49:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:49:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:49:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-14' and `tasks`.`due_by` > '2024-04-11' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-11 10:49:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-11' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-11 10:50:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:50:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:50:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:50:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:50:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-11 10:50:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 10:50:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 10:50:07] local.DEBUG: Current Balance: 100 [2024-04-11 10:50:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-11 10:50:12] local.DEBUG: task visible_to: [2024-04-11 10:50:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 10:50:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 10:50:14] local.DEBUG: Current Balance: 100 [2024-04-11 10:50:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-11 10:53:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:53:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:53:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:53:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:53:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 10:53:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 10:53:39] local.DEBUG: Current Balance: 100 [2024-04-11 10:53:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:53:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:53:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:53:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:53:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:53:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:53:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:53:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:53:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-11 10:54:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:54:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:54:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 10:54:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:54:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:54:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:54:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 10:54:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:54:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 10:54:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 10:54:03] local.DEBUG: Current Balance: 100 [2024-04-11 10:54:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:54:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:54:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 10:54:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:54:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 10:54:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 10:54:07] local.DEBUG: Current Balance: 100 [2024-04-11 10:54:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-11 10:54:13] local.DEBUG: task visible_to: [2024-04-11 10:54:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 10:54:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 10:54:18] local.DEBUG: Current Balance: 100 [2024-04-11 10:54:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:54:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:54:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:54:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:54:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 10:54:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 10:54:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 10:54:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 17:50:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 17:50:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 17:50:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 17:50:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 17:50:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 17:50:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 17:50:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 17:50:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 17:51:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 17:51:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 17:51:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 17:51:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 17:51:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 17:51:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 17:51:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 17:51:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 17:52:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 17:52:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 17:52:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 17:52:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 17:52:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 17:52:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 17:52:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 17:52:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 17:52:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 17:52:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 17:52:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 17:52:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 17:52:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 17:52:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 17:53:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 17:53:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 17:53:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 17:53:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 17:53:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 17:53:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 17:53:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 17:53:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 17:53:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 17:53:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 17:53:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 17:53:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 17:53:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 17:53:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 17:53:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 17:53:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 17:53:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 17:53:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 17:53:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-11 17:53:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 17:53:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 17:53:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 17:53:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 17:53:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 17:53:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-14' and `tasks`.`due_by` > '2024-04-11' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-11 17:53:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-11' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-11 17:54:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-11 17:54:06] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-11 17:56:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 17:56:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 17:56:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-11 17:56:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 17:57:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-11 17:57:00] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-11 17:57:00] local.DEBUG: task is not assigned to user, but it is visible, so creating new assignment [2024-04-11 17:57:00] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"Christal@gmail.com","name":"Christal Samuel"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Christal Samuel,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Complete a lesson on Khan Academy<\\/li>\\n <li><strong>Assigned By:<\\/strong> Aman<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-11 17:57:01] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.e5999080-f82c-11ee-8b14-525400103106.18ece4e4988","object":"email"} [2024-04-11 17:57:01] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"aman@coinsforcollege.org","name":"Aman"}}],"subject":"Task Claimed","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Pending Approval<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Pending Approval<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Aman,<\\/p>\\n <p>Your child has completed a task and it is now pending your approval:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Complete a lesson on Khan Academy<\\/li>\\n <li><strong>Assigned To:<\\/strong> Christal Samuel<\\/li>\\n <\\/ul>\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-11 17:57:01] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.e61cf150-f82c-11ee-bfc4-525400d6cd4f.18ece4e4ce5","object":"email"} [2024-04-11 17:57:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-11 17:57:02] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-11 18:02:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-11 18:02:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-11 19:09:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 19:09:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 19:09:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 19:09:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-11 19:09:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-10' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-11 19:09:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 04:56:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 04:56:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 04:56:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 04:56:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 04:56:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 04:56:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 04:56:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-12 05:00:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 05:00:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 05:00:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 05:00:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 05:01:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-12 05:01:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-12 05:01:23] local.DEBUG: Current Balance: 100 [2024-04-12 05:02:20] local.DEBUG: Product Image Details: Array ( [product_id] => 249 [image_name] => 13434557871712898140.png ) [2024-04-12 05:02:21] local.DEBUG: Product Image Details: Array ( [product_id] => 249 [image_name] => 15186243751712898140.png ) [2024-04-12 05:02:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-12 05:02:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 05:02:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 05:02:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 05:02:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 05:02:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 05:02:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 05:02:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-12 05:02:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-12 05:02:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 05:02:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 05:02:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 05:02:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 05:02:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 05:02:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 05:09:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 05:09:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 05:09:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 05:09:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 05:09:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-12 05:09:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-12 05:09:02] local.DEBUG: Current Balance: 100 [2024-04-12 05:09:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 05:09:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 05:09:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 05:09:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 05:09:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-12 05:09:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-12 05:09:11] local.DEBUG: Current Balance: 100 [2024-04-12 05:09:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 05:09:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 05:09:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 05:09:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 05:09:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-12 05:09:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-12 05:09:23] local.DEBUG: Current Balance: 100 [2024-04-12 05:10:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 05:10:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 05:10:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 05:10:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 05:10:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-12 05:10:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-12 05:10:09] local.DEBUG: Current Balance: 100 [2024-04-12 05:17:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 05:17:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 05:17:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 05:17:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 05:19:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 05:19:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 05:19:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 05:19:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 05:19:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 05:19:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 05:19:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-12 05:20:08] local.DEBUG: Product Image Details: Array ( [product_id] => 250 [image_name] => 10929630641712899207.png ) [2024-04-12 05:20:08] local.DEBUG: Product Image Details: Array ( [product_id] => 250 [image_name] => 5590049781712899208.png ) [2024-04-12 05:20:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-12 05:20:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 05:20:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 05:20:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 05:20:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 05:20:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 05:20:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 05:20:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-12 05:20:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-12 05:20:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 05:20:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 05:20:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 05:20:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 05:20:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 05:20:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 05:20:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 05:20:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 05:20:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 05:20:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 05:20:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 05:20:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 05:20:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 05:20:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 05:20:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 05:21:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 05:21:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 05:21:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 05:21:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 05:21:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 05:21:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 05:21:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 05:21:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-12 05:21:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-12 05:21:36] local.DEBUG: Current Balance: 100 [2024-04-12 05:21:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-12 05:21:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 05:21:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 05:21:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 05:21:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 05:21:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-12 05:21:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-12 05:21:54] local.DEBUG: Current Balance: 100 [2024-04-12 05:21:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-12 05:22:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 05:22:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 05:22:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 05:22:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 05:22:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 05:22:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 05:22:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 05:22:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 05:22:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 05:22:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 05:22:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 05:22:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 05:53:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 05:53:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 05:53:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 05:53:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 05:53:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 05:53:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 06:05:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 06:05:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 06:05:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 06:05:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 06:42:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 06:42:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 06:42:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 06:42:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 06:42:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 06:42:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 06:42:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 06:42:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 06:42:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 06:42:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 06:42:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 06:42:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 06:47:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 06:47:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 06:47:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 06:47:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 06:47:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 06:47:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 06:47:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-12 06:48:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 06:48:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 06:48:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 06:48:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 06:48:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 06:48:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 06:49:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 06:49:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 06:49:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 06:49:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 06:49:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 06:49:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 06:49:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 06:49:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 06:49:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 06:49:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-12 06:51:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 06:51:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 06:51:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 06:51:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 06:51:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 06:51:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 06:51:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-12 06:52:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 06:52:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 06:52:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 06:52:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 06:52:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 06:52:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 06:53:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-12 07:02:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 07:02:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 07:02:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 07:02:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 07:02:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 07:02:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 07:03:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-12 07:03:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-12 07:03:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-12 07:03:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-12 07:03:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-12 07:03:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-12 07:03:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-12 07:03:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 07:03:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 07:03:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 07:03:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 07:03:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-04-12 07:29:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 07:29:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 07:29:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 07:29:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 07:29:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 07:29:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 07:30:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 07:30:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 07:30:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 07:30:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 07:34:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 07:34:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 07:34:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 07:34:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 09:28:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 09:28:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 09:28:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 09:28:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 09:28:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 09:28:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 09:35:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 09:35:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 09:35:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 09:35:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 09:35:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 09:35:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 09:56:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 09:56:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 09:56:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 09:56:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 09:56:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-12 09:56:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-12 09:56:13] local.DEBUG: Current Balance: 100 [2024-04-12 09:56:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-12 09:57:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 09:57:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 09:57:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 09:57:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 09:57:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-12 09:57:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-12 09:57:05] local.DEBUG: Current Balance: 100 [2024-04-12 09:57:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 09:57:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 09:57:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 09:57:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 09:57:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 09:57:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 09:57:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 09:57:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 09:58:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-12 09:58:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-12 09:58:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-12 09:58:09] local.DEBUG: Current Balance: 100 [2024-04-12 10:03:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 10:03:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 10:03:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 10:03:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 10:03:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 10:03:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 10:03:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 10:03:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 10:03:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-12 10:03:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-12 10:03:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-12 10:03:35] local.DEBUG: Current Balance: 100 [2024-04-12 10:03:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 10:03:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 10:04:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 10:04:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 10:04:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 10:04:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 10:04:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-12 10:04:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-12 10:04:45] local.DEBUG: Current Balance: 100 [2024-04-12 10:04:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 10:04:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 10:04:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 10:04:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 10:07:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 10:07:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 10:07:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 10:07:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 10:07:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-12 10:38:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 10:38:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 10:38:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 10:38:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 10:38:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-12 10:39:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 10:39:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 10:39:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 10:39:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 10:39:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-12 10:41:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 10:41:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 10:41:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 10:41:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 10:41:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-12 10:43:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 10:43:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 10:43:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 10:43:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 10:44:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-12 10:44:48] local.DEBUG: Wish Image Details: Array ( [product_wished_id] => 5 [image_name] => 5907181591712918688.jpeg ) [2024-04-12 10:44:48] local.DEBUG: Wish Image Details: Array ( [product_wished_id] => 5 [image_name] => 3060644791712918688.jpeg ) [2024-04-12 10:44:49] local.DEBUG: Wish Image Details: Array ( [product_wished_id] => 5 [image_name] => 15301593351712918688.jpeg ) [2024-04-12 10:44:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 10:44:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 10:44:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 10:44:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 10:44:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-12 10:47:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-12 10:48:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 10:48:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 10:48:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 10:48:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 10:48:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-12 10:49:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 10:49:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 10:49:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 10:49:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 10:49:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 10:49:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 10:58:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 10:58:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 10:58:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 10:58:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 10:58:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 10:58:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:01:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 11:01:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:01:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 11:01:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:01:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 11:01:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:03:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 11:03:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:03:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 11:03:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:04:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-12 11:04:30] local.DEBUG: Wish Image Details: Array ( [product_wished_id] => 5 [image_name] => 9379405821712919869.jpeg ) [2024-04-12 11:04:30] local.DEBUG: Wish Image Details: Array ( [product_wished_id] => 5 [image_name] => 15929547961712919870.jpeg ) [2024-04-12 11:04:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-12 11:04:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-12 11:04:53] local.DEBUG: Current Balance: 100 [2024-04-12 11:05:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 11:05:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:05:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 11:05:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:05:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 11:05:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:05:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 11:05:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:05:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-12 11:05:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 11:05:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:05:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 11:05:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:05:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 11:05:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:05:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 11:05:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:09:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 11:09:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:09:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 11:09:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:09:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 11:09:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:11:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-12 11:11:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:11:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-12 11:11:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:11:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-12 11:11:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-12 11:11:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 11:11:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:12:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-12 11:12:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:12:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-12 11:12:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:12:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-12 11:12:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-12 11:12:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 11:12:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:12:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 11:12:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:12:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 11:12:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:14:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-12 11:14:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:14:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-12 11:14:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:14:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-12 11:14:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-12 11:14:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 11:14:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:19:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 11:19:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:19:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 11:19:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:19:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 11:19:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 11:19:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 11:20:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 11:20:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:20:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 11:20:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:23:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 11:23:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:23:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 11:23:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:23:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 11:23:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:38:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 11:38:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:38:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 11:38:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:40:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 11:40:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:40:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 11:40:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:40:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 11:40:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:40:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 11:40:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:41:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-12 11:41:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-12 11:41:07] local.DEBUG: Current Balance: 100 [2024-04-12 11:41:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 11:41:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:41:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 11:41:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:41:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-12 11:41:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-12 11:41:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-12 11:41:23] local.DEBUG: Current Balance: 100 [2024-04-12 11:41:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 11:41:25] local.DEBUG: task visible_to: [2024-04-12 11:41:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-12 11:41:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-12 11:41:36] local.DEBUG: Current Balance: 100 [2024-04-12 11:41:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 11:41:39] local.DEBUG: task visible_to: [2024-04-12 11:41:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 11:41:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:41:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 11:41:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:41:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-12 11:41:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-12 11:41:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-12 11:41:50] local.DEBUG: Current Balance: 100 [2024-04-12 11:41:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 11:42:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-12 11:42:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-12 11:42:00] local.DEBUG: Current Balance: 100 [2024-04-12 11:42:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-12 11:42:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 11:42:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:42:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 11:42:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:42:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-12 11:42:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-12 11:42:06] local.DEBUG: Current Balance: 100 [2024-04-12 11:42:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 11:42:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-12' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-12 11:42:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 11:42:14] local.DEBUG: task visible_to: [2024-04-12 11:42:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 11:42:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-12' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-12 11:42:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 11:42:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-12' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-12 11:42:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 11:42:30] local.DEBUG: task visible_to: [2024-04-12 11:42:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 11:42:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-12' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-12 11:49:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 11:49:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 11:49:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 11:49:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 11:49:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:49:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 11:49:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:50:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 11:50:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:50:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 11:50:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:53:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 11:53:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:53:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 11:53:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:53:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 11:53:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:54:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 11:54:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:54:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 11:54:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:54:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 11:54:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:59:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 11:59:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:59:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 11:59:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:59:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 11:59:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:59:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 11:59:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 11:59:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 11:59:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 12:00:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 12:00:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 12:00:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 12:06:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 12:06:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-12' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 12:06:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 12:06:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 12:06:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 12:06:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 12:07:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 12:07:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 12:07:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 12:07:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 12:07:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 12:07:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 12:07:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 12:07:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 12:07:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 12:07:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 12:07:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-12 12:08:19] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"jerry@gmail.com","name":"Jerry Smith"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Jerry Smith,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> testing<\\/li>\\n <li><strong>Assigned By:<\\/strong> Sachin<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-12 12:08:19] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.5a061d61-f8c5-11ee-a07a-5254000b1a0e.18ed2356a30","object":"email"} [2024-04-12 12:08:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 12:08:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 12:08:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 12:08:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 12:08:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 12:08:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-12' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-12 12:08:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 12:08:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-12' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 12:09:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 12:09:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 12:09:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 12:09:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 12:09:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 12:09:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 12:26:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 12:26:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 12:26:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 12:26:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 12:26:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 12:26:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 12:42:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 12:42:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 12:42:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 12:43:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 12:43:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 12:43:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 12:43:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 12:43:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 12:43:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-12' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 12:46:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 12:46:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 12:46:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 12:46:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 12:46:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 12:46:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-12' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 12:47:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 12:47:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-12' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 12:47:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 12:47:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-12' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 12:47:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 12:47:27] local.DEBUG: task visible_to: [2024-04-12 12:50:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 12:50:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-12' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-12 12:50:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 12:50:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-12' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 12:50:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 12:50:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-12' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 12:50:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 12:50:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-12' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-12 13:17:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 13:17:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 13:17:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 13:17:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 13:18:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 13:18:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-12' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-12 13:19:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 13:19:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-12' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-12 13:19:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 13:19:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-12' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-12 13:20:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 13:20:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 13:20:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 13:20:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 13:20:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 13:20:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-12' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-12 13:20:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 13:20:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-12' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-12 13:20:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 13:20:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-12' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-12 13:20:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 13:20:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-12' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-12 13:20:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 13:20:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-12' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-12 13:21:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 13:21:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-12' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 13:21:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 13:21:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-12' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 13:21:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 13:21:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-12' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-12 13:21:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 13:21:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-12' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-12 13:21:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 13:21:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-12' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-12 13:21:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 13:21:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-12' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-12 13:23:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 13:23:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 13:23:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 13:23:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 13:23:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 13:23:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-12' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-12 13:23:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 13:23:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-12' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 20 [2024-04-12 13:23:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 13:23:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-12' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 20 [2024-04-12 13:23:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 13:23:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-12' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 20 [2024-04-12 13:23:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 13:23:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-12' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-12 13:23:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 13:23:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-12' or `tasks`.`due_by` is null) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 13:23:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 13:23:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-12' or `tasks`.`due_by` is null) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 20 [2024-04-12 13:23:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 13:23:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-12' or `tasks`.`due_by` is null) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 20 [2024-04-12 13:23:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 13:23:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-12' or `tasks`.`due_by` is null) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 20 [2024-04-12 13:24:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 13:24:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-12' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-12 13:24:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 13:24:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-12' or `tasks`.`due_by` is null) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 13:24:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 13:24:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-12' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-12 13:24:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 13:24:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-12' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-12 13:24:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 13:24:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 13:24:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 13:24:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 13:24:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-12 13:24:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-12' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-12 13:27:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 13:38:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 13:38:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 13:38:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 13:38:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 13:39:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 13:39:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 13:39:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 13:39:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 13:39:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 13:39:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 13:39:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 18:28:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 18:28:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 18:28:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 18:28:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 19:40:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 19:40:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 19:40:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 19:40:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 19:41:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 19:41:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 19:41:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 19:41:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 19:41:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 19:41:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 19:42:53] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"Testchild@test.com","name":"Testchild@test.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Testchild@test.com,<\\/p>\\n <p>You have been invited to join the \\"\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: <\\/li>\\n <li>Invited By: JACK Town<\\/li>\\n <li>Role: Parent<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"https:\\/\\/play.google.com\\/store\\/apps\\/details?id=com.coins.college\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"https:\\/\\/apps.apple.com\\/us\\/app\\/coins-for-college\\/id6469045127\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-12 19:42:54] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.dabdc7c0-f904-11ee-a07a-5254000b1a0e.18ed3d5963c","object":"email"} [2024-04-12 19:43:48] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"Testchild@test.com","name":"Testchild@test.com"}}],"subject":"Group Invitation Update - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation Update - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation Update<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Testchild@test.com,<\\/p>\\n <p>Your membership of the group with name \\"JACK Town's Group\\" has been updated.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: JACK Town's Group<\\/li>\\n <li>Updated Role in Group: Parent<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"https:\\/\\/play.google.com\\/store\\/apps\\/details?id=com.coins.college\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"https:\\/\\/apps.apple.com\\/us\\/app\\/coins-for-college\\/id6469045127\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-12 19:43:49] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.fb84bdb0-f904-11ee-a07a-5254000b1a0e.18ed3d66d0b","object":"email"} [2024-04-12 19:43:55] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"Testchild@test.com","name":"Testchild@test.com"}}],"subject":"Group Invitation Update - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation Update - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation Update<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Testchild@test.com,<\\/p>\\n <p>Your membership of the group with name \\"JACK Town's Group\\" has been updated.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: JACK Town's Group<\\/li>\\n <li>Updated Role in Group: Parent<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"https:\\/\\/play.google.com\\/store\\/apps\\/details?id=com.coins.college\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"https:\\/\\/apps.apple.com\\/us\\/app\\/coins-for-college\\/id6469045127\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-12 19:43:55] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.ff5a08a0-f904-11ee-8b14-525400103106.18ed3d6862a","object":"email"} [2024-04-12 19:44:02] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"Testchild@test.com","name":"Testchild@test.com"}}],"subject":"Group Invitation Update - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation Update - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation Update<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Testchild@test.com,<\\/p>\\n <p>Your membership of the group with name \\"JACK Town's Group\\" has been updated.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: JACK Town's Group<\\/li>\\n <li>Updated Role in Group: Child<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"https:\\/\\/play.google.com\\/store\\/apps\\/details?id=com.coins.college\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"https:\\/\\/apps.apple.com\\/us\\/app\\/coins-for-college\\/id6469045127\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-12 19:44:02] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.0396ef00-f905-11ee-99cc-525400f92481.18ed3d6a1f0","object":"email"} [2024-04-12 19:44:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 19:44:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 19:44:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 19:44:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 19:44:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 19:44:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 19:45:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 19:45:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 19:45:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 19:45:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 19:45:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 19:47:30] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"Test@test.com","name":"Test@test.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Test@test.com,<\\/p>\\n <p>You have been invited to join the \\"\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: <\\/li>\\n <li>Invited By: JACK Town<\\/li>\\n <li>Role: Child<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"https:\\/\\/play.google.com\\/store\\/apps\\/details?id=com.coins.college\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"https:\\/\\/apps.apple.com\\/us\\/app\\/coins-for-college\\/id6469045127\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-12 19:47:30] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.7f8ec600-f905-11ee-a17c-525400fa05f6.18ed3d9ce60","object":"email"} [2024-04-12 19:49:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 19:49:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 19:49:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 19:49:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 19:53:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 19:53:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 19:53:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 19:53:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 19:53:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 19:53:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 19:54:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-12 19:58:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 19:58:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 19:58:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 19:58:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 19:58:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 19:58:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 19:58:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-12 19:58:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 19:58:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 19:58:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 19:58:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 19:58:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 19:58:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 19:58:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-12 19:58:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 19:58:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 19:58:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 19:58:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 19:58:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 19:58:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 19:58:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-12 19:58:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 19:58:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 19:58:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 19:58:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 19:58:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 19:58:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 19:59:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 19:59:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 19:59:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 19:59:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 19:59:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-12 19:59:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 19:59:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 20:00:14] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kaijahchildbeautiful@gmail.com","name":"Kaijahchild"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Kaijahchild,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Complete a lesson on Khan Academy<\\/li>\\n <li><strong>Assigned By:<\\/strong> Kaijah Samuel<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-12 20:00:15] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.473691f0-f907-11ee-8b14-525400103106.18ed3e5788f","object":"email"} [2024-04-12 20:03:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 20:03:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 20:03:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 20:03:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 20:03:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 20:03:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 20:03:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-12 20:03:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 20:03:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 20:03:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 20:03:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 20:03:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 20:03:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 20:03:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 20:03:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-12 20:03:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 20:03:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 20:03:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 20:03:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-12 20:03:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 20:03:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 20:03:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 20:03:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 20:03:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 20:04:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 20:04:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 20:04:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 20:04:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 20:04:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 20:04:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 20:04:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 20:04:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 20:04:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 20:17:25] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"Henry@gmail.com","name":"Pastor Henry"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Pastor Henry,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">78204<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-12 20:17:25] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.ada49390-f909-11ee-addd-5254004d4100.18ed3f53349","object":"email"} [2024-04-12 20:17:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 20:17:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 20:17:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 20:17:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 20:17:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 20:17:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 20:18:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-12 20:18:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 20:18:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-12 20:18:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 20:18:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-12 20:18:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 20:18:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-12 20:18:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 20:18:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-12 20:19:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 20:19:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 20:19:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 20:51:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 20:51:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 20:51:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 20:51:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 20:51:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 20:51:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 20:54:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 20:54:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 20:54:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 20:54:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 20:54:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 20:54:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 20:56:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 20:56:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 20:56:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 20:56:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 20:56:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 20:56:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 20:56:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 20:56:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-12 20:56:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 20:56:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 20:57:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 20:57:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:08:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 21:08:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 21:08:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 21:08:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 21:08:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 21:08:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 21:08:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:08:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-12 21:08:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:08:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:10:47] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"Henrychild@gmail.com","name":"Henrychild@gmail.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Henrychild@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: <\\/li>\\n <li>Invited By: Pastor Henry<\\/li>\\n <li>Role: Child<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"https:\\/\\/play.google.com\\/store\\/apps\\/details?id=com.coins.college\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"https:\\/\\/apps.apple.com\\/us\\/app\\/coins-for-college\\/id6469045127\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-12 21:10:48] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.225bb5e0-f911-11ee-a07a-5254000b1a0e.18ed426103e","object":"email"} [2024-04-12 21:12:20] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"henrychild@gmail.com","name":"Henry Child"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Henry Child,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">46974<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-12 21:12:20] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.59494b80-f911-11ee-addd-5254004d4100.18ed4277838","object":"email"} [2024-04-12 21:12:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 21:12:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 21:12:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 21:12:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 21:13:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 21:13:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 21:13:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 21:13:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 21:13:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-12 21:13:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-12 21:13:35] local.DEBUG: Current Balance: 0 [2024-04-12 21:13:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:13:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:13:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:13:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 21:13:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 21:13:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 21:13:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 21:13:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 21:13:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 21:13:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 21:13:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 21:13:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-12 21:14:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 21:14:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 21:14:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 21:14:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 21:14:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:14:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:14:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:14:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:14:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:14:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:14:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:14:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:14:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:14:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:14:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:14:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:14:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:14:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:14:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:15:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 21:15:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 21:15:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 21:15:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 21:15:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 21:15:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 21:15:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:15:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:15:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:15:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:15:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:15:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:15:32] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"henrychild@gmail.com","name":"Henry Child"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Henry Child,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Complete PLE<\\/li>\\n <li><strong>Assigned By:<\\/strong> Pastor Henry<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-12 21:15:32] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.cbbb6400-f911-11ee-a07a-5254000b1a0e.18ed42a6640","object":"email"} [2024-04-12 21:15:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:15:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:16:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:16:05] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"henrychild@gmail.com","name":"Henry Child"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Henry Child,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Clean Bathroom<\\/li>\\n <li><strong>Assigned By:<\\/strong> Pastor Henry<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-12 21:16:06] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.dfd5e000-f911-11ee-b0f3-52540064429e.18ed42aea00","object":"email"} [2024-04-12 21:16:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:16:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:16:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-12 21:19:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-12 21:19:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-12 21:20:36] local.ERROR: exception occured while adding task: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`cfc`.`tasks`, CONSTRAINT `tasks_ibfk_3` FOREIGN KEY (`product_id`) REFERENCES `products` (`product_id`) ON DELETE CASCADE ON UPDATE NO ACTION) (SQL: insert into `tasks` (`parent_task_id`, `group_id`, `task_title`, `description`, `goal_id`, `task_sp`, `task_type`, `product_id`, `due_by`, `task_status`, `is_featured`, `created_by`, `updated_at`, `created_at`) values (?, 173, Read Book of Romans, Read the first 5 chapters of Romans and write a 250 word essay about what you have learned., 11, 0, ADDITIONAL_REWARD, 0, ?, PENDING, 0, 222, 2024-04-12 21:20:36, 2024-04-12 21:20:36)) [2024-04-12 21:20:36] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(546): Illuminate\Database\Connection->run() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(498): Illuminate\Database\Connection->statement() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3322): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1869): Illuminate\Database\Query\Builder->insertGetId() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1330): Illuminate\Database\Eloquent\Builder->__call() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1295): Illuminate\Database\Eloquent\Model->insertAndSetId() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(986): Illuminate\Database\Eloquent\Model->save() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Support/helpers.php(306): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(987): tap() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2330): Illuminate\Database\Eloquent\Model->forwardCallTo() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2342): Illuminate\Database\Eloquent\Model->__call() #15 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(129): Illuminate\Database\Eloquent\Model::__callStatic() #16 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ParentController.php(267): App\V2\Services\TaskService->createTask() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ParentController->create_tasks() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #44 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #45 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #46 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #47 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #48 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #49 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #50 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #51 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #52 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #53 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #54 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #55 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #56 {main} [2024-04-12 21:20:45] local.ERROR: exception occured while adding task: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`cfc`.`tasks`, CONSTRAINT `tasks_ibfk_3` FOREIGN KEY (`product_id`) REFERENCES `products` (`product_id`) ON DELETE CASCADE ON UPDATE NO ACTION) (SQL: insert into `tasks` (`parent_task_id`, `group_id`, `task_title`, `description`, `goal_id`, `task_sp`, `task_type`, `product_id`, `due_by`, `task_status`, `is_featured`, `created_by`, `updated_at`, `created_at`) values (?, 173, Read Book of Romans, Read the first 5 chapters of Romans and write a 250 word essay about what you have learned., 11, 0, ADDITIONAL_REWARD, 0, ?, PENDING, 0, 222, 2024-04-12 21:20:45, 2024-04-12 21:20:45)) [2024-04-12 21:20:45] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(546): Illuminate\Database\Connection->run() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(498): Illuminate\Database\Connection->statement() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3322): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1869): Illuminate\Database\Query\Builder->insertGetId() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1330): Illuminate\Database\Eloquent\Builder->__call() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1295): Illuminate\Database\Eloquent\Model->insertAndSetId() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(986): Illuminate\Database\Eloquent\Model->save() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Support/helpers.php(306): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(987): tap() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2330): Illuminate\Database\Eloquent\Model->forwardCallTo() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2342): Illuminate\Database\Eloquent\Model->__call() #15 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(129): Illuminate\Database\Eloquent\Model::__callStatic() #16 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ParentController.php(267): App\V2\Services\TaskService->createTask() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ParentController->create_tasks() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #44 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #45 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #46 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #47 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #48 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #49 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #50 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #51 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #52 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #53 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #54 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #55 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #56 {main} [2024-04-12 21:21:07] local.ERROR: exception occured while adding task: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`cfc`.`tasks`, CONSTRAINT `tasks_ibfk_3` FOREIGN KEY (`product_id`) REFERENCES `products` (`product_id`) ON DELETE CASCADE ON UPDATE NO ACTION) (SQL: insert into `tasks` (`parent_task_id`, `group_id`, `task_title`, `description`, `goal_id`, `task_sp`, `task_type`, `product_id`, `due_by`, `task_status`, `is_featured`, `created_by`, `updated_at`, `created_at`) values (?, 173, Read Book of Romans, Read the first 5 chapters of Romans and write a 250 word essay about what you have learned., 11, 0, ADDITIONAL_REWARD, 0, ?, PENDING, 0, 222, 2024-04-12 21:21:07, 2024-04-12 21:21:07)) [2024-04-12 21:21:07] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(546): Illuminate\Database\Connection->run() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(498): Illuminate\Database\Connection->statement() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3322): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1869): Illuminate\Database\Query\Builder->insertGetId() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1330): Illuminate\Database\Eloquent\Builder->__call() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1295): Illuminate\Database\Eloquent\Model->insertAndSetId() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(986): Illuminate\Database\Eloquent\Model->save() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Support/helpers.php(306): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(987): tap() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2330): Illuminate\Database\Eloquent\Model->forwardCallTo() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2342): Illuminate\Database\Eloquent\Model->__call() #15 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(129): Illuminate\Database\Eloquent\Model::__callStatic() #16 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ParentController.php(267): App\V2\Services\TaskService->createTask() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ParentController->create_tasks() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #44 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #45 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #46 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #47 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #48 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #49 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #50 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #51 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #52 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #53 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #54 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #55 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #56 {main} [2024-04-12 21:21:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 21:21:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 21:21:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 21:21:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 21:21:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 21:21:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 21:21:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`created_by` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:22:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-12 21:26:32] local.DEBUG: Product Image Details: Array ( [product_id] => 251 [image_name] => 1789444761712957192.jpeg ) [2024-04-12 21:26:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-12 21:26:44] local.ERROR: exception occured while adding task: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`cfc`.`tasks`, CONSTRAINT `tasks_ibfk_3` FOREIGN KEY (`product_id`) REFERENCES `products` (`product_id`) ON DELETE CASCADE ON UPDATE NO ACTION) (SQL: insert into `tasks` (`parent_task_id`, `group_id`, `task_title`, `description`, `goal_id`, `task_sp`, `task_type`, `product_id`, `due_by`, `task_status`, `is_featured`, `created_by`, `updated_at`, `created_at`) values (?, 173, Read The Bible, Read the 1st 5 chapters of Romans. Write 250 word essay., 11, 0, ADDITIONAL_REWARD, 0, ?, PENDING, 0, 222, 2024-04-12 21:26:44, 2024-04-12 21:26:44)) [2024-04-12 21:26:44] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(546): Illuminate\Database\Connection->run() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(498): Illuminate\Database\Connection->statement() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3322): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1869): Illuminate\Database\Query\Builder->insertGetId() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1330): Illuminate\Database\Eloquent\Builder->__call() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1295): Illuminate\Database\Eloquent\Model->insertAndSetId() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(986): Illuminate\Database\Eloquent\Model->save() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Support/helpers.php(306): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(987): tap() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2330): Illuminate\Database\Eloquent\Model->forwardCallTo() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2342): Illuminate\Database\Eloquent\Model->__call() #15 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(129): Illuminate\Database\Eloquent\Model::__callStatic() #16 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ParentController.php(267): App\V2\Services\TaskService->createTask() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ParentController->create_tasks() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #44 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #45 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #46 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #47 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #48 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #49 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #50 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #51 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #52 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #53 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #54 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #55 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #56 {main} [2024-04-12 21:27:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:27:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 21:27:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 21:27:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 21:27:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 21:28:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:28:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:28:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:28:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:28:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:28:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:28:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:28:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:28:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:28:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:28:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:28:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:28:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:28:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:28:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:28:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:28:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:28:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:28:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:28:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:28:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:28:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:28:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:28:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:29:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:29:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:29:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:29:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-15' and `tasks`.`due_by` > '2024-04-12' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:29:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:29:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-12 21:29:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 21:29:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 21:29:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 21:29:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 22:32:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-12 22:32:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-12 22:32:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-11' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-12 22:32:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-13 00:11:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-13 00:11:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-13 00:11:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-13 00:11:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-13 00:11:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-13 00:11:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-13 00:11:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-13 00:11:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-13 00:11:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-13 00:11:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-13 00:11:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-13 00:11:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-13 00:12:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-16' and `tasks`.`due_by` > '2024-04-13' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-13 00:12:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-13 00:12:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-13 00:14:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-13 00:14:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-13 00:14:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-13 00:14:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-13 00:14:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-13 00:14:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-13 00:14:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-13 00:14:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-13 00:14:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-16' and `tasks`.`due_by` > '2024-04-13' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-13 00:14:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-13 00:14:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-13 00:15:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-13 00:15:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-13 00:15:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-13 00:15:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-13 00:15:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-13 00:15:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-13 01:33:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-13 01:33:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-13 01:33:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-13 01:33:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-13 01:33:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-13 01:33:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-13 01:33:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-13 01:33:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-13 01:33:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-13 01:33:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-13 01:33:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-13 01:33:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-13 01:33:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-13 01:33:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-13 01:33:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-13 01:33:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-13 01:33:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-13 01:33:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-13 01:33:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-13 01:33:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-13 01:34:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-13 01:34:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-13 01:34:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-13 01:34:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-13 01:34:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-13 01:34:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-13 01:35:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-13 01:35:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-13 01:35:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-13 01:35:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-13 01:35:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-13 01:35:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-13 01:35:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-16' and `tasks`.`due_by` > '2024-04-13' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-13 01:35:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-13 01:35:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-13 01:35:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-13 01:35:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-13 03:13:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-13 03:13:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-13 03:13:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-13 03:13:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-13 03:13:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-13 03:13:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-13 03:14:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-16' and `tasks`.`due_by` > '2024-04-13' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-13 03:14:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-13 03:14:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-13 03:14:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-13 03:14:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-13 03:14:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-13 03:14:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-13 03:14:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-12' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-13 03:14:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-13 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-04-13 07:05:03] local.ERROR: Error while clonning tasks and associated rewards, rolling back the transaction. Message: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'created_by' in 'field list' (SQL: insert into `task_assigned` (`user_id`, `task_id`, `group_id`, `status`, `task_details_for_approval`, `deleted_at`, `created_by`, `updated_at`, `created_at`) values (220, 260, 76, PENDING, ?, ?, ?, 2024-04-13 07:05:03, 2024-04-13 07:05:03)) [2024-04-13 07:05:03] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(546): Illuminate\Database\Connection->run() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(498): Illuminate\Database\Connection->statement() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3322): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1869): Illuminate\Database\Query\Builder->insertGetId() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1330): Illuminate\Database\Eloquent\Builder->__call() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1295): Illuminate\Database\Eloquent\Model->insertAndSetId() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert() #9 /home/o5t6x7pgljbm/public_html/admin/app/Models/TaskAssigned.php(82): Illuminate\Database\Eloquent\Model->save() #10 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(466): App\Models\TaskAssigned->cloneTaskAssignee() #11 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(410): App\V2\Services\TaskService->cloneTaskAndReward() #12 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2CronController.php(37): App\V2\Services\TaskService->cloneTasksAndRewards() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2CronController->create_repeate_tasks() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #44 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #45 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #46 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #47 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #48 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #49 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #50 {main} [2024-04-14 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-04-14 07:05:02] local.ERROR: Error while clonning tasks and associated rewards, rolling back the transaction. Message: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'created_by' in 'field list' (SQL: insert into `task_assigned` (`user_id`, `task_id`, `group_id`, `status`, `task_details_for_approval`, `deleted_at`, `created_by`, `updated_at`, `created_at`) values (220, 261, 76, PENDING, ?, ?, ?, 2024-04-14 07:05:02, 2024-04-14 07:05:02)) [2024-04-14 07:05:02] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(546): Illuminate\Database\Connection->run() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(498): Illuminate\Database\Connection->statement() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3322): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1869): Illuminate\Database\Query\Builder->insertGetId() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1330): Illuminate\Database\Eloquent\Builder->__call() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1295): Illuminate\Database\Eloquent\Model->insertAndSetId() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert() #9 /home/o5t6x7pgljbm/public_html/admin/app/Models/TaskAssigned.php(82): Illuminate\Database\Eloquent\Model->save() #10 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(466): App\Models\TaskAssigned->cloneTaskAssignee() #11 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(410): App\V2\Services\TaskService->cloneTaskAndReward() #12 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2CronController.php(37): App\V2\Services\TaskService->cloneTasksAndRewards() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2CronController->create_repeate_tasks() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #44 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #45 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #46 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #47 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #48 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #49 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #50 {main} [2024-04-14 07:13:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-13' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-14 07:13:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-14 07:13:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-13' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-14 07:13:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-14 07:13:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-13' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-14 07:13:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-14 07:14:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-13' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-14 07:14:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-14 07:14:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-13' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-14 07:14:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-14 07:14:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-13' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-14 07:14:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-14 07:14:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-13' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-14 07:14:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-14 07:14:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-13' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-14 07:14:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-14 23:45:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-13' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-14 23:45:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-14 23:45:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-13' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-14 23:45:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-14 23:47:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-13' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-14 23:47:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-14 23:47:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-13' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-14 23:47:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-14 23:49:43] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"josh@me.com","name":"Joshua Samuel"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Joshua Samuel,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">78792<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-14 23:49:44] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.ab0e5100-fab9-11ee-b0f3-52540064429e.18edf044a10","object":"email"} [2024-04-14 23:50:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-13' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-14 23:50:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-14 23:50:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-13' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-14 23:50:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-14 23:50:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-13' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-14 23:50:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-14 23:50:53] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"christal@gmail.com","name":"christal@gmail.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello christal@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: <\\/li>\\n <li>Invited By: Joshua Samuel<\\/li>\\n <li>Role: Child<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"https:\\/\\/play.google.com\\/store\\/apps\\/details?id=com.coins.college\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"https:\\/\\/apps.apple.com\\/us\\/app\\/coins-for-college\\/id6469045127\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-14 23:50:53] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.d4908980-fab9-11ee-8b14-525400103106.18edf055a18","object":"email"} [2024-04-14 23:51:22] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"jsamuel.com@gmail.com","name":"jsamuel.com@gmail.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello jsamuel.com@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: <\\/li>\\n <li>Invited By: Joshua Samuel<\\/li>\\n <li>Role: Parent<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"https:\\/\\/play.google.com\\/store\\/apps\\/details?id=com.coins.college\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"https:\\/\\/apps.apple.com\\/us\\/app\\/coins-for-college\\/id6469045127\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-14 23:51:22] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.e5f6baf0-fab9-11ee-bc9c-525400ae9113.18edf05cc1f","object":"email"} [2024-04-14 23:51:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-13' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-14 23:51:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-14 23:51:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-13' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-14 23:51:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-14 23:53:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-17' and `tasks`.`due_by` > '2024-04-14' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-14 23:53:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-14' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-15 00:20:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 00:20:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 00:20:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 00:20:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 00:20:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 00:20:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 00:20:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-18' and `tasks`.`due_by` > '2024-04-15' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 00:20:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 00:20:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 00:20:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 00:20:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-18' and `tasks`.`due_by` > '2024-04-15' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 00:20:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 00:20:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 00:29:12] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"Businessman6349@yahoo.com","name":"Dr Tommy Nash"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Dr Tommy Nash,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">89572<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-15 00:29:12] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.2ebdeb00-fabf-11ee-a07a-5254000b1a0e.18edf286db0","object":"email"} [2024-04-15 00:30:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 00:30:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 00:30:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 00:30:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 00:30:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 00:30:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 00:31:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 00:31:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 00:31:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 00:31:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 00:31:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 00:31:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 00:39:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 00:39:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 00:39:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 00:39:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 00:39:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 00:39:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 00:39:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 00:39:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 00:39:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 00:39:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 00:39:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 00:39:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 00:41:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 00:41:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-15 00:41:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 00:41:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 00:41:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 00:41:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 00:41:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 00:41:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 00:41:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 00:41:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 00:41:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 00:41:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 00:41:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 00:41:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 00:41:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-15 00:41:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 00:41:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-15 00:41:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 00:41:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-15 00:41:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 00:41:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-15 00:41:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 00:41:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-15 00:41:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 00:41:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 00:41:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-15 00:41:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-15 00:41:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 00:41:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-15 00:41:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 00:41:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 00:41:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-15 00:42:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 00:42:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-15 00:42:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 00:42:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-15 00:47:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 00:47:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 00:47:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 00:47:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 00:47:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 00:47:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 00:48:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 00:48:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 00:48:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 00:48:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 00:48:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 00:48:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 00:51:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 00:51:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 00:51:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 00:51:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 00:51:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 00:51:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 00:51:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 00:51:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 00:51:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 00:51:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 00:51:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 00:51:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 00:51:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 00:51:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 00:51:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 00:51:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 00:51:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 00:51:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 00:51:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 00:51:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 00:51:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 04:36:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 04:36:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 04:36:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 04:36:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 04:36:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 04:36:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 04:36:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 04:36:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 04:36:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 04:36:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 04:36:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 04:36:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 04:36:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 04:36:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 04:36:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 04:36:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 04:36:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 04:36:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 06:49:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 06:49:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 06:49:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 06:49:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 06:49:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 06:49:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 07:04:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 07:04:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 07:04:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 07:04:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 07:04:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 07:04:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 07:04:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 07:04:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 07:04:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 07:04:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 07:04:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 07:04:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-04-15 07:05:02] local.ERROR: Error while clonning tasks and associated rewards, rolling back the transaction. Message: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'created_by' in 'field list' (SQL: insert into `task_assigned` (`user_id`, `task_id`, `group_id`, `status`, `task_details_for_approval`, `deleted_at`, `created_by`, `updated_at`, `created_at`) values (220, 262, 76, PENDING, ?, ?, ?, 2024-04-15 07:05:02, 2024-04-15 07:05:02)) [2024-04-15 07:05:02] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(546): Illuminate\Database\Connection->run() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(498): Illuminate\Database\Connection->statement() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3322): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1869): Illuminate\Database\Query\Builder->insertGetId() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1330): Illuminate\Database\Eloquent\Builder->__call() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1295): Illuminate\Database\Eloquent\Model->insertAndSetId() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert() #9 /home/o5t6x7pgljbm/public_html/admin/app/Models/TaskAssigned.php(82): Illuminate\Database\Eloquent\Model->save() #10 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(466): App\Models\TaskAssigned->cloneTaskAssignee() #11 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(410): App\V2\Services\TaskService->cloneTaskAndReward() #12 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2CronController.php(37): App\V2\Services\TaskService->cloneTasksAndRewards() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2CronController->create_repeate_tasks() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #44 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #45 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #46 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #47 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #48 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #49 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #50 {main} [2024-04-15 11:22:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 11:22:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 11:22:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-15 11:22:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 11:23:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-15 11:23:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 11:23:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 11:23:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-15 11:23:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 11:47:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 11:47:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 11:47:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 11:47:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 11:47:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 11:47:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 11:48:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-15 11:48:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 11:48:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 11:48:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 11:48:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 11:48:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 11:48:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 11:50:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 11:50:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 11:50:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 11:50:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 11:50:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 11:50:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 11:51:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 11:51:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 11:51:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 11:51:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 11:51:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 11:51:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 12:28:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 12:28:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 12:28:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 12:28:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 12:28:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 12:28:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 12:28:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-18' and `tasks`.`due_by` > '2024-04-15' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 12:28:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 12:28:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 12:28:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 12:28:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 12:28:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 12:28:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 12:28:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 12:28:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 12:28:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 12:28:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 12:28:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 12:28:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 12:28:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 12:28:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 12:29:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 12:29:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 12:29:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 12:29:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 12:29:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 12:29:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 12:29:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-18' and `tasks`.`due_by` > '2024-04-15' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 12:29:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 12:29:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 12:29:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 12:29:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-18' and `tasks`.`due_by` > '2024-04-15' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 12:29:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 12:29:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 12:29:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 12:29:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 12:29:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 12:29:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 12:29:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 12:29:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 12:30:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 12:30:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-15 12:30:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 12:30:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 12:30:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 12:30:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 12:30:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 12:30:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 12:30:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 12:30:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-15 12:30:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-15 12:30:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 12:30:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-15 12:30:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 12:30:37] local.DEBUG: Product Image Details: Array ( [product_id] => 214 [image_name] => 21136650291713184236.png ) [2024-04-15 12:30:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 12:30:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-15 12:30:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 12:30:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 12:30:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 12:30:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 12:30:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 12:30:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 12:30:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 12:30:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-15 12:30:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 12:30:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-15 12:30:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-15 12:30:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 12:30:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-15 12:30:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 12:30:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 12:30:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 12:30:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 12:30:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 12:30:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 12:31:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 12:31:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 12:31:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 12:31:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 12:31:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 12:31:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 12:31:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 12:31:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-15 12:31:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-15 12:31:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 12:31:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-15 12:31:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 12:31:31] local.DEBUG: Product Image Details: Array ( [product_id] => 224 [image_name] => 2141400571713184291.png ) [2024-04-15 12:31:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 12:31:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-15 12:31:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 12:31:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 12:31:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 12:31:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 12:31:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 12:31:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 12:32:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 12:32:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-15 12:32:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 12:32:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-15 12:32:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-15 12:32:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 12:32:15] local.DEBUG: Product Image Details: Array ( [product_id] => 217 [image_name] => 3499455601713184335.png ) [2024-04-15 12:32:15] local.DEBUG: Product Image Details: Array ( [product_id] => 217 [image_name] => 6416247531713184335.png ) [2024-04-15 12:32:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 12:32:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-15 12:32:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 12:32:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 12:32:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 12:32:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 12:32:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 12:32:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 12:32:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 12:32:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-15 12:32:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-15 12:32:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 12:32:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-15 12:32:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 12:32:41] local.DEBUG: Product Image Details: Array ( [product_id] => 246 [image_name] => 12808420981713184361.png ) [2024-04-15 12:32:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 12:32:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-15 12:32:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 12:32:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 12:32:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 12:32:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 12:32:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 12:32:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 12:57:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 12:57:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-15 12:57:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 12:57:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 12:57:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 12:57:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 12:57:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 12:57:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 13:04:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 13:04:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 13:04:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-15 13:04:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 13:04:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 13:04:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 13:04:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-15 13:04:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 13:05:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 13:05:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 13:05:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-15 13:05:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 13:05:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-18' and `tasks`.`due_by` > '2024-04-15' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-15 13:05:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-15' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-15 13:05:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 13:05:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 13:05:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-15 13:05:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 13:45:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 13:45:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 13:45:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 13:45:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 13:45:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 13:45:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 13:46:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 13:46:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 13:46:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 13:46:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 13:46:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 13:46:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 13:46:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-15 13:46:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 13:46:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-15 13:46:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 13:46:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-15 13:46:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 13:46:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 13:46:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-15 13:46:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-15 13:46:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 13:46:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 13:46:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-15 13:48:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 13:48:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-15 13:52:35] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"Businessman6349@yahoo.com","name":"Businessman6349@yahoo.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Businessman6349@yahoo.com,<\\/p>\\n <p>You have been invited to join the \\"DrTN\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: DrTN<\\/li>\\n <li>Invited By: Dr Tommy Nash<\\/li>\\n <li>Role: Child<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"https:\\/\\/play.google.com\\/store\\/apps\\/details?id=com.coins.college\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"https:\\/\\/apps.apple.com\\/us\\/app\\/coins-for-college\\/id6469045127\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-15 13:52:35] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.6a0548f0-fb2f-11ee-bfc4-525400d6cd4f.18ee207f2ff","object":"email"} [2024-04-15 13:52:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 13:52:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 13:52:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 13:52:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 13:52:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 13:52:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 13:53:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-15 13:53:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 13:53:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-15 13:53:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 13:53:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-15 13:53:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 13:53:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 13:53:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-15 13:53:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 13:53:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 13:53:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 13:54:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 13:54:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-15 13:54:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 13:54:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-15 13:54:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 13:54:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-15 13:54:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 13:54:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-15 13:54:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-15 13:55:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 13:55:22] local.DEBUG: Product Image Details: Array ( [product_id] => 115 [image_name] => 6625574001713189322.png ) [2024-04-15 13:55:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 13:55:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-15 13:55:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 13:55:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 13:55:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 13:55:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 13:55:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 13:55:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 13:55:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-18' and `tasks`.`due_by` > '2024-04-15' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 13:55:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 13:55:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 13:56:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 13:56:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 13:56:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-18' and `tasks`.`due_by` > '2024-04-15' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 13:56:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 13:56:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 13:57:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 13:57:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 13:57:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 13:57:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 13:57:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 13:57:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 13:57:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 13:57:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-15 16:14:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 16:14:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 16:14:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 16:14:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 16:14:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 16:14:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 16:52:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 16:52:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 16:52:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 16:52:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 16:52:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 16:52:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 16:52:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-15 16:52:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 16:53:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-15 16:53:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 16:53:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-15 16:53:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 16:53:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-15 16:53:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 16:53:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-15 16:53:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-18' and `tasks`.`due_by` > '2024-04-15' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 16:53:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 16:53:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 20:00:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 20:00:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 20:00:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 20:00:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 20:00:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 20:00:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 20:00:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-15 20:00:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 20:00:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-15 20:00:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 20:00:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-18' and `tasks`.`due_by` > '2024-04-15' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 20:00:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 20:00:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 20:01:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 20:01:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 20:01:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 20:01:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 20:01:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-18' and `tasks`.`due_by` > '2024-04-15' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 20:01:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 20:01:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 20:01:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 20:01:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 20:01:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 20:01:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 20:01:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 20:01:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 21:05:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 21:05:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 21:05:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 21:05:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 21:05:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 21:05:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 21:05:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 21:05:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 21:05:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 21:05:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 21:05:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 21:05:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 21:05:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 21:05:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 21:05:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-15 21:05:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 21:06:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 21:06:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 21:06:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-15 21:06:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 21:06:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 21:06:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 21:06:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-15 21:06:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 21:06:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 21:06:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 21:06:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-15 21:06:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 21:07:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 21:07:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 21:07:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 21:07:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 21:07:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 21:07:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 21:08:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-15 21:46:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 21:46:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 21:46:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 21:46:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 21:46:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 21:46:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 21:46:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-18' and `tasks`.`due_by` > '2024-04-15' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 21:46:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 21:46:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 21:47:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 21:47:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-18' and `tasks`.`due_by` > '2024-04-15' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 21:47:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 21:47:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 21:59:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 21:59:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 21:59:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 21:59:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 21:59:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 21:59:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 22:00:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 22:00:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 22:00:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 22:00:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 22:00:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 22:00:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 22:12:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 22:12:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 22:12:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 22:12:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 22:12:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 22:12:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 22:12:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-18' and `tasks`.`due_by` > '2024-04-15' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 22:12:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 22:12:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 22:13:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 22:13:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 22:13:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 22:13:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 22:13:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 22:13:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 22:13:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 22:14:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 22:14:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-15 22:14:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-18' and `tasks`.`due_by` > '2024-04-15' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 22:14:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 22:14:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 22:17:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 22:17:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 22:17:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-15 22:17:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 22:31:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 22:31:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 22:31:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 22:31:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 22:31:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 22:31:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 22:33:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 22:33:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-15 22:33:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 22:33:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 22:33:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 22:33:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 22:33:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 22:33:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 22:33:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 22:33:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-15 22:33:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 22:33:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 22:33:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 22:33:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 22:33:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 22:33:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 22:33:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 22:33:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 22:33:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 22:33:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 22:33:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 22:33:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 22:33:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 22:33:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-15 22:33:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 22:33:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 22:33:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 22:33:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 22:33:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 22:33:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 22:33:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-15 22:35:09] local.DEBUG: Product Image Details: Array ( [product_id] => 252 [image_name] => 7948039121713220509.png ) [2024-04-15 22:35:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-15 22:35:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 22:35:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 22:35:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 22:35:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 22:35:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 22:35:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 22:35:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-18' and `tasks`.`due_by` > '2024-04-15' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 22:35:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 22:35:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 22:36:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-15 22:36:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-15 22:37:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-15 22:37:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 22:37:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-14' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-15 22:37:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-15 22:38:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-18' and `tasks`.`due_by` > '2024-04-15' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-15 22:38:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-15' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-16 05:04:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 05:04:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 05:04:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 05:04:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 05:04:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 05:04:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-16 05:04:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 05:04:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 05:04:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 05:04:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 05:05:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 05:05:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 05:05:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 05:05:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 05:05:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 05:05:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 20 [2024-04-16 05:06:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 05:06:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 05:06:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-16 05:06:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 05:06:48] local.DEBUG: task visible_to: [2024-04-16 05:06:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 05:29:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 05:29:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 05:29:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 05:29:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 05:30:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 05:30:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-16 05:30:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 05:36:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 05:40:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 05:40:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 05:40:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 05:40:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 05:41:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-16 05:41:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-16 05:41:54] local.DEBUG: Current Balance: 100 [2024-04-16 05:42:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 05:42:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 05:42:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 05:42:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 05:45:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 05:45:43] local.DEBUG: task visible_to: [2024-04-16 05:45:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 05:45:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-16 05:45:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 05:45:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 05:45:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 05:45:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 05:45:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 05:45:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-16 05:45:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 05:45:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 05:45:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 05:45:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 05:45:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-16 05:46:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 05:46:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 05:46:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 05:46:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 05:46:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 05:46:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-16 05:48:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 05:48:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 05:48:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-16 05:48:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 05:48:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 05:48:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 05:48:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 05:48:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 05:48:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-16 05:48:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-16 05:48:38] local.DEBUG: Current Balance: 100 [2024-04-16 05:48:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 05:48:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 05:48:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 05:48:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 05:48:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 05:55:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 05:55:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 05:55:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 05:55:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 05:56:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 05:56:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-16 05:57:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 05:57:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 05:57:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 05:57:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 05:57:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 05:57:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-16 05:59:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 05:59:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 05:59:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 05:59:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 05:59:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 05:59:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-16 05:59:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 05:59:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 06:00:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 06:00:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-16 06:00:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 06:00:49] local.DEBUG: task visible_to: [2024-04-16 06:01:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 06:01:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-16 06:01:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 06:01:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 06:01:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 06:01:15] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-16 06:01:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 06:01:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-16 06:01:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 06:01:42] local.DEBUG: task visible_to: [2024-04-16 06:02:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-16 06:02:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-16 06:02:00] local.DEBUG: Current Balance: 100 [2024-04-16 06:02:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 06:02:18] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2ChildController.php(131): App\V2\Services\TaskService->getTasksById() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2ChildController->get_task_by_id() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #9 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #10 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #11 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #12 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Auth\Middleware\Authenticate->handle() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #39 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #40 {main} [2024-04-16 06:02:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-16 06:02:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-16 06:02:27] local.DEBUG: Current Balance: 100 [2024-04-16 06:02:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 06:02:28] local.DEBUG: task visible_to: [2024-04-16 06:02:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 06:02:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:02:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 06:02:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:02:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-16 06:02:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-16 06:02:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-16 06:02:44] local.DEBUG: Current Balance: 100 [2024-04-16 06:02:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 06:02:49] local.DEBUG: task visible_to: [2024-04-16 06:02:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-16 06:02:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-16 06:02:54] local.DEBUG: Current Balance: 100 [2024-04-16 06:02:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-16 06:02:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 06:02:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:02:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 06:02:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:06:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-16 06:06:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-16 06:06:20] local.DEBUG: Current Balance: 100 [2024-04-16 06:06:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 06:06:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:06:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 06:06:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:06:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-16 06:06:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-16 06:06:36] local.DEBUG: Current Balance: 100 [2024-04-16 06:07:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 06:07:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:07:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 06:07:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:08:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-16 06:08:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-16 06:08:36] local.DEBUG: Current Balance: 100 [2024-04-16 06:08:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 06:08:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:08:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 06:08:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:09:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-16 06:09:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 06:09:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:09:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 06:09:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:09:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 06:09:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:09:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 06:09:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:10:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 06:10:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:10:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-16 06:10:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:10:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 06:10:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:10:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 06:10:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:10:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 06:10:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:10:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-16 06:10:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:11:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 06:11:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:11:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 06:11:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:12:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 06:12:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:12:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-16 06:12:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:13:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 06:13:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:13:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 06:13:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:13:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 06:13:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:13:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-16 06:13:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:15:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 06:15:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:15:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 06:15:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:15:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 06:15:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:15:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-16 06:15:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:15:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-16 06:15:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-16 06:15:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-16 06:15:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-16 06:15:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-16 06:16:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 06:16:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:16:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 06:16:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:16:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 06:16:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:16:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-16 06:16:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:16:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 06:16:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:16:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-16 06:16:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:16:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-16 06:16:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-16 06:16:05] local.DEBUG: Current Balance: 100 [2024-04-16 06:16:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 06:16:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:16:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 06:16:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:16:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-16 06:16:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-16 06:16:33] local.DEBUG: Current Balance: 100 [2024-04-16 06:17:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 06:17:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:17:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 06:17:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:17:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 06:17:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:17:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 06:17:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:18:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-16 06:18:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-16 06:18:15] local.DEBUG: Current Balance: 100 [2024-04-16 06:18:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 06:18:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:18:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 06:18:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:18:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-16 06:18:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-16 06:18:35] local.DEBUG: Current Balance: 100 [2024-04-16 06:22:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 06:22:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:22:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 06:22:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:22:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 06:22:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:22:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-16 06:22:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:22:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-16 06:22:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-16 06:22:36] local.DEBUG: Current Balance: 100 [2024-04-16 06:27:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 06:27:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:27:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 06:27:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:27:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-16 06:27:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-16 06:27:20] local.DEBUG: Current Balance: 100 [2024-04-16 06:27:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 06:27:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:27:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 06:27:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:27:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-16 06:27:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-16 06:27:28] local.DEBUG: Current Balance: 100 [2024-04-16 06:27:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 06:27:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:27:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 06:27:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:27:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 06:27:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:27:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-16 06:27:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:27:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-16 06:27:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-16 06:27:32] local.DEBUG: Current Balance: 100 [2024-04-16 06:27:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-16 06:27:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-16 06:27:35] local.DEBUG: Current Balance: 100 [2024-04-16 06:27:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-16 06:27:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-16 06:27:37] local.DEBUG: Current Balance: 100 [2024-04-16 06:27:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-16 06:27:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-16 06:27:40] local.DEBUG: Current Balance: 100 [2024-04-16 06:27:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 06:27:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:27:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 06:27:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:27:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-16 06:27:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-16 06:27:44] local.DEBUG: Current Balance: 100 [2024-04-16 06:27:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 06:27:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:27:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 06:27:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:27:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-16 06:27:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-16 06:27:49] local.DEBUG: Current Balance: 100 [2024-04-16 06:27:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 06:27:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:27:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 06:27:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:27:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 06:27:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:27:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-16 06:27:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:27:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 06:27:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:27:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 06:27:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:27:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 06:27:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:27:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-16 06:27:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:27:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-16 06:27:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-16 06:27:59] local.DEBUG: Current Balance: 100 [2024-04-16 06:28:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 06:28:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-16 06:28:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-16 06:28:08] local.DEBUG: Current Balance: 100 [2024-04-16 06:28:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-16 06:28:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-16 06:28:24] local.DEBUG: Current Balance: 100 [2024-04-16 06:28:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 06:28:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:28:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 06:28:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:28:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 06:28:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-16 06:28:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 06:28:33] local.DEBUG: task visible_to: [2024-04-16 06:28:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 06:28:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-16 06:28:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 06:28:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 06:28:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 06:28:42] local.DEBUG: task visible_to: [2024-04-16 06:28:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 06:28:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-16 06:29:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 06:29:04] local.DEBUG: task visible_to: [2024-04-16 06:29:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 06:29:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-16 06:29:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 06:29:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 06:29:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 06:29:15] local.DEBUG: task visible_to: [2024-04-16 06:34:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 06:34:21] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-16 06:34:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 06:34:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-16 06:34:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 06:34:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-16 06:35:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 06:35:07] local.DEBUG: task visible_to: [2024-04-16 06:35:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 06:35:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-16 06:35:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 06:35:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 06:35:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 06:35:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 06:35:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 06:35:58] local.DEBUG: task visible_to: [2024-04-16 06:37:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 06:37:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:37:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 06:37:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:41:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 06:41:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-16 06:41:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-16 06:41:27] local.DEBUG: Current Balance: 100 [2024-04-16 06:42:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 06:42:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-16 06:42:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 06:54:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 06:54:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:54:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 06:54:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:55:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-16 06:55:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-16 06:55:38] local.DEBUG: Current Balance: 100 [2024-04-16 06:55:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 06:55:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:55:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 06:55:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 06:55:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 06:55:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-16 06:56:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 06:59:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 06:59:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 20 [2024-04-16 06:59:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 06:59:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 20 [2024-04-16 06:59:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 06:59:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 20 [2024-04-16 06:59:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 06:59:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 06:59:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 20 [2024-04-16 06:59:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 06:59:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 20 [2024-04-16 07:00:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 07:04:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 07:04:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 07:04:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 07:04:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 07:04:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 07:04:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 07:04:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 07:04:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 07:04:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 07:04:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 07:05:01] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-04-16 07:05:01] local.ERROR: Error while clonning tasks and associated rewards, rolling back the transaction. Message: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'created_by' in 'field list' (SQL: insert into `task_assigned` (`user_id`, `task_id`, `group_id`, `status`, `task_details_for_approval`, `deleted_at`, `created_by`, `updated_at`, `created_at`) values (220, 263, 76, PENDING, ?, ?, ?, 2024-04-16 07:05:01, 2024-04-16 07:05:01)) [2024-04-16 07:05:01] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(546): Illuminate\Database\Connection->run() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(498): Illuminate\Database\Connection->statement() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3322): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1869): Illuminate\Database\Query\Builder->insertGetId() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1330): Illuminate\Database\Eloquent\Builder->__call() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1295): Illuminate\Database\Eloquent\Model->insertAndSetId() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert() #9 /home/o5t6x7pgljbm/public_html/admin/app/Models/TaskAssigned.php(82): Illuminate\Database\Eloquent\Model->save() #10 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(466): App\Models\TaskAssigned->cloneTaskAssignee() #11 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(410): App\V2\Services\TaskService->cloneTaskAndReward() #12 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2CronController.php(37): App\V2\Services\TaskService->cloneTasksAndRewards() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2CronController->create_repeate_tasks() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #44 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #45 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #46 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #47 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #48 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #49 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #50 {main} [2024-04-16 07:07:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 07:07:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 07:07:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 07:07:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 07:07:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 07:07:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 07:07:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 07:07:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 07:08:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 07:08:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-16 07:08:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 07:08:20] local.DEBUG: task visible_to: [2024-04-16 07:08:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 07:14:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 07:14:26] local.DEBUG: task visible_to: [2024-04-16 11:08:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 11:08:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 11:08:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 11:08:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 11:14:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 11:14:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 11:14:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 11:14:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 11:14:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 11:14:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-16 11:14:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 11:16:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 11:16:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 11:16:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 11:16:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 11:16:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 11:16:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-16 11:16:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 11:23:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 11:23:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 11:23:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 11:23:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 11:23:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 11:23:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-16 11:23:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 11:23:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 11:23:30] local.DEBUG: task visible_to: [2024-04-16 11:23:30] local.DEBUG: task is not assigned to user, and it is not visible as well [2024-04-16 11:23:31] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"sachin@gmail.com","name":"Sachin"}}],"subject":"Task Claimed","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Pending Approval<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Pending Approval<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Sachin,<\\/p>\\n <p>Your child has completed a task and it is now pending your approval:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> rest 1<\\/li>\\n <li><strong>Assigned To:<\\/strong> Jerry Smith<\\/li>\\n <\\/ul>\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-16 11:23:31] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.c13f6790-fbe3-11ee-bfc4-525400d6cd4f.18ee6a5d489","object":"email"} [2024-04-16 11:23:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 11:23:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 11:24:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 11:24:01] local.DEBUG: task visible_to: [2024-04-16 11:24:01] local.DEBUG: task is not assigned to user, and it is not visible as well [2024-04-16 11:24:01] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"sachin@gmail.com","name":"Sachin"}}],"subject":"Task Claimed","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Pending Approval<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Pending Approval<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Sachin,<\\/p>\\n <p>Your child has completed a task and it is now pending your approval:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> rest 1<\\/li>\\n <li><strong>Assigned To:<\\/strong> Jerry Smith<\\/li>\\n <\\/ul>\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-16 11:24:01] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.d37dd090-fbe3-11ee-addd-5254004d4100.18ee6a64c19","object":"email"} [2024-04-16 11:24:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 11:24:02] local.DEBUG: task visible_to: [2024-04-16 11:24:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 11:24:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-16 11:24:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 11:24:11] local.DEBUG: task visible_to: [2024-04-16 11:24:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 11:24:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 11:24:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-16 11:25:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 11:25:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 11:25:02] local.DEBUG: task visible_to: [2024-04-16 11:26:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 11:29:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 11:29:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 11:29:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 11:29:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 11:29:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 11:29:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-16 11:29:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 11:29:49] local.DEBUG: task visible_to: [2024-04-16 11:30:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 11:30:07] local.DEBUG: task visible_to: [2024-04-16 11:30:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 11:30:12] local.DEBUG: task visible_to: [2024-04-16 11:30:12] local.DEBUG: task is not assigned to user, and it is not visible as well [2024-04-16 11:30:12] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"sachin@gmail.com","name":"Sachin"}}],"subject":"Task Claimed","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Pending Approval<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Pending Approval<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Sachin,<\\/p>\\n <p>Your child has completed a task and it is now pending your approval:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> task name<\\/li>\\n <li><strong>Assigned To:<\\/strong> Jerry Smith<\\/li>\\n <\\/ul>\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-16 11:30:13] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.b0be2270-fbe4-11ee-bc9c-525400ae9113.18ee6abf617","object":"email"} [2024-04-16 11:30:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 11:30:13] local.DEBUG: task visible_to: [2024-04-16 11:30:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 11:30:20] local.DEBUG: task visible_to: [2024-04-16 11:30:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 11:30:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 20 [2024-04-16 11:30:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 11:30:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 20 [2024-04-16 11:30:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 11:30:26] local.DEBUG: task visible_to: [2024-04-16 11:30:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 11:30:50] local.DEBUG: task visible_to: [2024-04-16 11:30:50] local.DEBUG: task is not assigned to user, and it is not visible as well [2024-04-16 11:30:50] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"sachin@gmail.com","name":"Sachin"}}],"subject":"Task Claimed","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Pending Approval<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Pending Approval<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Sachin,<\\/p>\\n <p>Your child has completed a task and it is now pending your approval:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Test task<\\/li>\\n <li><strong>Assigned To:<\\/strong> Jerry Smith<\\/li>\\n <\\/ul>\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-16 11:30:50] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.c7191890-fbe4-11ee-bc9c-525400ae9113.18ee6ac8899","object":"email"} [2024-04-16 11:30:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 11:30:51] local.DEBUG: task visible_to: [2024-04-16 11:30:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 11:30:56] local.DEBUG: task visible_to: [2024-04-16 11:32:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 11:32:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 11:32:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 11:32:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 11:32:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 11:32:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 11:32:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 11:32:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 11:32:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 11:32:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 11:33:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 11:33:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 11:33:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 11:33:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 11:33:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 11:33:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-16 11:34:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 11:34:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 11:34:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 11:34:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 11:34:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 11:34:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-16 11:34:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 11:34:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 11:34:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-16 11:34:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 11:36:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-16 11:36:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-16 11:36:04] local.DEBUG: Current Balance: 100 [2024-04-16 11:37:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 11:37:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-16 11:38:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-16 11:38:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-16' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-16 11:39:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 11:39:06] local.DEBUG: task visible_to: [2024-04-16 12:07:33] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"donaldkinnnard@gmail.com","name":"Donald Kinnard"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Donald Kinnard,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">43696<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-16 12:07:34] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.e880f020-fbe9-11ee-9b18-525400d4bb1c.18ee6ce2822","object":"email"} [2024-04-16 12:08:44] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"donaldkinnnard@gmail.com","name":"Donald Kinnard"}}],"subject":"Resend Verification Code - Coins for College","htmlbody":"<!-- otp_email_template.blade.php -->\\n<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>OTP Email<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>OTP Verification<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your verification code is: <strong>44194<\\/strong><\\/p>\\n <p>Please use this code to complete the verification process.<\\/p>\\n <p>If you did not request this verification or have any concerns, please contact our support team immediately.<\\/p>\\n <p>Thank you for choosing Coins For College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins For College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-16 12:08:44] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.1283a340-fbea-11ee-8b14-525400103106.18ee6cf3b74","object":"email"} [2024-04-16 12:09:39] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"donaldkinnard@gmail.com","name":"Donald Kinnard"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Donald Kinnard,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">09403<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-16 12:09:39] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.332bc690-fbea-11ee-b0f3-52540064429e.18ee6d01179","object":"email"} [2024-04-16 12:10:15] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"donaldkinnard@gmail.com","name":"Donald Kinnard"}}],"subject":"Resend Verification Code - Coins for College","htmlbody":"<!-- otp_email_template.blade.php -->\\n<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>OTP Email<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>OTP Verification<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your verification code is: <strong>62743<\\/strong><\\/p>\\n <p>Please use this code to complete the verification process.<\\/p>\\n <p>If you did not request this verification or have any concerns, please contact our support team immediately.<\\/p>\\n <p>Thank you for choosing Coins For College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins For College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-16 12:10:15] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.4894e2a0-fbea-11ee-a17c-525400fa05f6.18ee6d09dca","object":"email"} [2024-04-16 12:12:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 12:12:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 12:12:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 12:12:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 12:12:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 12:12:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 12:20:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-16 12:20:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-16 12:21:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-16 12:21:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-16 12:21:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-16 12:21:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-16 12:21:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-16 12:21:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-16 12:21:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-16 12:22:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-16 12:22:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-16 12:22:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 12:22:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 12:22:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 12:22:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 12:22:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 12:22:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 12:23:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 12:23:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 12:23:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 12:23:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 12:23:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 12:23:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 12:24:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-16 12:24:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-16 12:25:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 12:25:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 12:25:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 12:25:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 12:25:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 12:25:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 12:27:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-16 12:27:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-16 12:27:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-19' and `tasks`.`due_by` > '2024-04-16' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 12:27:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 12:27:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-16 12:51:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 12:51:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 12:51:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 12:51:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 12:51:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 12:51:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 12:52:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-16 12:52:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 12:52:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 12:52:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 12:52:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 12:52:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 12:52:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 12:52:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-16 12:52:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 12:52:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-16 12:52:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 12:52:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-16 12:52:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 12:52:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-16 12:52:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 12:53:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-16 12:53:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-16 12:54:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 12:54:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 12:54:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 12:54:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 12:54:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 12:54:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 12:54:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-16 12:55:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 12:55:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 12:55:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 12:55:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 12:55:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 12:55:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 20:41:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 20:41:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 20:41:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 20:41:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 20:41:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-15' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-16 20:41:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-16 20:41:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-17 00:57:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 00:57:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 00:57:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 00:57:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 00:57:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 00:57:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 06:04:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 06:04:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 06:04:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 06:04:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 06:17:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 06:17:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 06:17:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 06:17:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 06:43:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 06:43:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 06:43:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 06:43:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 06:43:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-17 06:43:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-17 06:43:16] local.DEBUG: Current Balance: 100 [2024-04-17 06:43:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 06:43:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 06:43:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 06:43:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 06:43:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-17 06:43:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-17 06:43:44] local.DEBUG: Current Balance: 100 [2024-04-17 06:43:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 06:43:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 06:43:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 06:43:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 06:43:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-20' and `tasks`.`due_by` > '2024-04-17' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-17 06:43:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-17' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-17 06:43:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-20' and `tasks`.`due_by` > '2024-04-17' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-17 06:43:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-17' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-17 06:44:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-17 06:44:00] local.DEBUG: task visible_to: [2024-04-17 06:44:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-17 06:44:01] local.DEBUG: task visible_to: [2024-04-17 06:45:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-17 06:45:17] local.DEBUG: task visible_to: [2024-04-17 06:51:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-17 06:51:38] local.DEBUG: task visible_to: [2024-04-17 06:56:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 06:56:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 06:56:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 06:56:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:00:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-20' and `tasks`.`due_by` > '2024-04-17' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-17 07:00:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-17' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-17 07:00:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-17 07:00:22] local.DEBUG: task visible_to: [2024-04-17 07:01:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:01:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:01:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 07:01:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:04:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-17 07:04:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:04:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:04:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 07:04:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:04:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-20' and `tasks`.`due_by` > '2024-04-17' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-17 07:04:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-17' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-17 07:04:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:04:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:04:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 07:04:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:04:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-17 07:04:57] local.DEBUG: task visible_to: [2024-04-17 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-04-17 07:05:02] local.ERROR: Error while clonning tasks and associated rewards, rolling back the transaction. Message: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'created_by' in 'field list' (SQL: insert into `task_assigned` (`user_id`, `task_id`, `group_id`, `status`, `task_details_for_approval`, `deleted_at`, `created_by`, `updated_at`, `created_at`) values (220, 264, 76, PENDING, ?, ?, ?, 2024-04-17 07:05:02, 2024-04-17 07:05:02)) [2024-04-17 07:05:02] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(546): Illuminate\Database\Connection->run() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(498): Illuminate\Database\Connection->statement() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3322): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1869): Illuminate\Database\Query\Builder->insertGetId() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1330): Illuminate\Database\Eloquent\Builder->__call() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1295): Illuminate\Database\Eloquent\Model->insertAndSetId() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert() #9 /home/o5t6x7pgljbm/public_html/admin/app/Models/TaskAssigned.php(82): Illuminate\Database\Eloquent\Model->save() #10 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(466): App\Models\TaskAssigned->cloneTaskAssignee() #11 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(410): App\V2\Services\TaskService->cloneTaskAndReward() #12 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2CronController.php(37): App\V2\Services\TaskService->cloneTasksAndRewards() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2CronController->create_repeate_tasks() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #44 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #45 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #46 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #47 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #48 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #49 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #50 {main} [2024-04-17 07:05:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-17 07:05:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-17 07:05:07] local.DEBUG: Current Balance: 100 [2024-04-17 07:05:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-17 07:05:11] local.DEBUG: task visible_to: [2024-04-17 07:05:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:05:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:05:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 07:05:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:06:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:06:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:06:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 07:06:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:07:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:07:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:07:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 07:07:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:12:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:12:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:12:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 07:12:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:13:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-17 07:13:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-17 07:13:22] local.DEBUG: Current Balance: 100 [2024-04-17 07:13:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-17 07:13:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:13:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:13:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 07:13:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:13:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:13:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:13:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-17 07:13:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:13:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-17 07:13:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-17 07:13:54] local.DEBUG: Current Balance: 100 [2024-04-17 07:13:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:13:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:13:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 07:13:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:13:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:13:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:13:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-17 07:13:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:14:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:14:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:14:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 07:14:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:14:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-17 07:14:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-17 07:14:03] local.DEBUG: Current Balance: 100 [2024-04-17 07:14:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:14:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:14:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 07:14:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:14:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-17 07:14:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-17 07:14:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-17 07:14:20] local.DEBUG: Current Balance: 100 [2024-04-17 07:14:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-20' and `tasks`.`due_by` > '2024-04-17' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-17 07:14:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-17' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 20 [2024-04-17 07:14:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-17 07:14:35] local.DEBUG: task visible_to: [2024-04-17 07:14:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-20' and `tasks`.`due_by` > '2024-04-17' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-17 07:14:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-17' or `tasks`.`due_by` is null) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 20 [2024-04-17 07:14:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-20' and `tasks`.`due_by` > '2024-04-17' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-17 07:14:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-17' or `tasks`.`due_by` is null) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 20 [2024-04-17 07:14:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-17 07:14:58] local.DEBUG: task visible_to: [2024-04-17 07:18:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:18:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:18:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:18:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:18:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:18:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:19:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:19:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:19:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:19:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:19:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:19:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:19:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-17 07:19:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-17 07:19:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:19:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:19:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:19:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:19:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:19:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:19:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-17 07:19:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:19:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:19:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:19:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:19:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:19:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:19:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:19:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-17 07:19:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:19:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:19:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:19:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:19:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:19:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:20:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:20:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:20:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-17 07:20:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:20:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-17 07:20:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:20:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:20:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:20:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-17 07:20:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:20:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:20:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:20:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:20:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:20:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:20:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:20:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-17 07:20:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:20:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:20:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:20:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:20:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:20:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:20:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-17 07:20:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-17 07:20:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:20:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:20:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:20:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:20:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:20:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:20:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-17 07:20:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-17 07:20:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:20:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:20:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:20:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:20:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:20:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:20:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-17 07:20:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:20:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:20:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:20:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:20:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:20:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:20:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-17 07:20:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-17 07:21:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-17 07:21:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-17 07:21:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-17 07:21:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-17 07:21:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-17 07:21:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-17 07:21:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-17 07:21:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:21:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:21:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:21:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:21:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:21:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:21:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-17 07:21:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-17 07:21:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:21:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:21:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:21:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:21:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:21:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:21:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-17 07:21:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-17 07:21:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-17 07:21:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-17 07:22:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-17 07:22:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:22:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:22:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:22:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:22:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:22:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:22:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-20' and `tasks`.`due_by` > '2024-04-17' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-17 07:22:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-17 07:22:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-17 07:22:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-17 07:22:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-17 07:22:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`created_by` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-17 07:22:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-17 07:23:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:23:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:23:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:23:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:23:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:23:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:23:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-17 07:23:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-17 07:24:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-17 07:24:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-17 07:24:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-17 07:28:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:28:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:28:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:28:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 07:28:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 07:28:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 08:58:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 08:58:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 08:58:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 08:58:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 08:58:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 08:58:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 09:04:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 09:04:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 09:04:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 09:04:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 09:04:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 09:04:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 09:04:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 09:04:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 09:08:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 09:08:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 09:08:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 09:08:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 09:08:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 09:08:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 09:10:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 09:10:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 09:10:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 09:10:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 09:10:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 09:10:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 10:13:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 10:13:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 10:13:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 10:13:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 10:13:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 10:13:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 10:13:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 10:13:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 10:13:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 10:13:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 10:13:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 10:13:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 10:15:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-20' and `tasks`.`due_by` > '2024-04-17' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-17 10:15:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-17 10:15:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-17 10:15:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-17 10:16:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 10:16:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 10:16:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 10:16:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 10:16:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-20' and `tasks`.`due_by` > '2024-04-17' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-17 10:16:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-17' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-17 10:16:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-17 10:16:21] local.DEBUG: task visible_to: [2024-04-17 10:16:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-17 10:16:40] local.DEBUG: task visible_to: [2024-04-17 10:16:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 10:16:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 10:16:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 10:16:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 10:16:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` asc [2024-04-17 10:16:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-17 10:16:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-17 10:16:56] local.DEBUG: Current Balance: 100 [2024-04-17 10:17:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-20' and `tasks`.`due_by` > '2024-04-17' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-17 10:17:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-17' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 20 [2024-04-17 10:17:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-20' and `tasks`.`due_by` > '2024-04-17' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-17 10:17:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-17' or `tasks`.`due_by` is null) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 20 [2024-04-17 10:17:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-20' and `tasks`.`due_by` > '2024-04-17' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-17 10:17:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-17' or `tasks`.`due_by` is null) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 20 [2024-04-17 10:17:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-17 10:17:13] local.DEBUG: task visible_to: [2024-04-17 10:17:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-17 10:17:16] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-17 10:21:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 10:21:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 10:21:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 10:21:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 10:22:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 10:22:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 10:22:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 10:22:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 10:23:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 10:23:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 10:23:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 10:23:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 10:27:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 10:27:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 10:27:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 10:27:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 10:38:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 10:38:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 10:38:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 10:38:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 10:38:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-20' and `tasks`.`due_by` > '2024-04-17' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-17 10:38:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-17' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-17 10:54:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 10:54:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 10:54:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 10:54:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 10:56:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 10:56:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 10:56:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 10:56:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 10:56:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-20' and `tasks`.`due_by` > '2024-04-17' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-17 10:56:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-17' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-17 10:57:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 10:57:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 10:57:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 10:57:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 11:01:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 11:01:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 11:01:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 11:01:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 11:03:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 11:03:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 11:03:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 11:03:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 11:04:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 11:04:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 11:04:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 11:04:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 11:13:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 11:13:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 11:13:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 11:13:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 11:14:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 11:14:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 11:14:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 11:14:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 12:50:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 12:50:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 12:50:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 12:50:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 12:50:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 12:50:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 12:50:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 12:50:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 12:53:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-20' and `tasks`.`due_by` > '2024-04-17' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-17 12:53:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-17' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-17 12:55:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 12:55:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 12:55:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 12:55:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 12:55:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-17 12:55:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-17 12:55:57] local.DEBUG: Current Balance: 100 [2024-04-17 12:56:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 12:56:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 12:56:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 12:56:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 12:57:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 12:57:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 12:57:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 12:57:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 13:00:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 13:00:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 13:00:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 13:00:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 13:00:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-20' and `tasks`.`due_by` > '2024-04-17' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-17 13:00:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-17' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-17 13:00:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-20' and `tasks`.`due_by` > '2024-04-17' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-17 13:00:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-17' or `tasks`.`due_by` is null) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 20 [2024-04-17 13:00:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-20' and `tasks`.`due_by` > '2024-04-17' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-17 13:00:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-17' or `tasks`.`due_by` is null) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 20 [2024-04-17 13:00:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-17 13:00:31] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-17 13:12:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 13:12:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 13:12:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 13:12:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 13:20:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 13:20:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 13:20:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 13:20:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 13:23:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 13:23:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 13:23:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 13:23:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 13:23:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 13:23:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 17:37:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 17:37:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-17 17:37:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 17:37:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 17:37:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 17:37:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-16' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-17 17:37:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-17 17:37:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 03:12:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 03:12:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 03:12:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 03:12:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 03:12:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 03:12:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 03:12:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 03:12:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 03:12:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 03:12:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 03:12:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 03:12:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 05:01:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 05:01:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 05:01:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 05:01:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 05:01:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 05:01:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 05:25:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 05:25:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 05:25:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 05:25:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 05:25:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 05:25:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 05:42:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 05:42:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 05:42:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-18 05:42:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 05:57:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 05:57:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 05:57:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 05:57:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 05:57:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 05:57:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 06:03:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 06:03:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 06:03:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-18 06:03:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 06:04:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 06:04:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 06:04:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 06:04:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 06:04:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 06:04:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-04-18 07:05:02] local.ERROR: Error while clonning tasks and associated rewards, rolling back the transaction. Message: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'created_by' in 'field list' (SQL: insert into `task_assigned` (`user_id`, `task_id`, `group_id`, `status`, `task_details_for_approval`, `deleted_at`, `created_by`, `updated_at`, `created_at`) values (220, 265, 76, PENDING, ?, ?, ?, 2024-04-18 07:05:02, 2024-04-18 07:05:02)) [2024-04-18 07:05:02] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(546): Illuminate\Database\Connection->run() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(498): Illuminate\Database\Connection->statement() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3322): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1869): Illuminate\Database\Query\Builder->insertGetId() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1330): Illuminate\Database\Eloquent\Builder->__call() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1295): Illuminate\Database\Eloquent\Model->insertAndSetId() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert() #9 /home/o5t6x7pgljbm/public_html/admin/app/Models/TaskAssigned.php(82): Illuminate\Database\Eloquent\Model->save() #10 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(466): App\Models\TaskAssigned->cloneTaskAssignee() #11 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(410): App\V2\Services\TaskService->cloneTaskAndReward() #12 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2CronController.php(37): App\V2\Services\TaskService->cloneTasksAndRewards() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2CronController->create_repeate_tasks() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #44 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #45 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #46 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #47 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #48 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #49 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #50 {main} [2024-04-18 10:39:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 10:39:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 10:39:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 10:39:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 10:39:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 10:39:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 10:45:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 10:45:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 10:45:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 10:45:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 10:45:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 10:45:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:08:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:08:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:08:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:08:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:08:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:08:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:18:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:18:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:18:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:18:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:18:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:18:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:18:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:18:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:18:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:18:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:18:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:18:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:18:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:18:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:18:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:18:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:18:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:18:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:20:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:20:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:20:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:20:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:20:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:20:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:26:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:26:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:26:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:26:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:26:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:26:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:26:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:26:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:26:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:26:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:26:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:26:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:27:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:27:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:27:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:27:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:27:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:27:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:27:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-18 12:27:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:27:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:27:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:27:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:27:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:27:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:27:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-18 12:27:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:27:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-18 12:27:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:27:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:27:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:27:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:27:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:27:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:27:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:27:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-18 12:27:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:27:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:27:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:27:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:27:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:27:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:27:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:27:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:27:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-18 12:27:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:28:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:28:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:28:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:28:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:28:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:28:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:28:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-18 12:28:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:28:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:28:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:28:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:28:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:28:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:28:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-18 12:37:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:37:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:37:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:37:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:37:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:37:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:37:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-18 12:37:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:37:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:37:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:37:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:37:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:37:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:45:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:45:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:45:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:45:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:45:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:45:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:49:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-18 12:57:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:57:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:57:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:57:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:57:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:57:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:57:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-21' and `tasks`.`due_by` > '2024-04-18' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-18 12:57:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-18 12:57:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-18 12:57:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:57:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:57:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:57:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:57:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:57:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:57:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-21' and `tasks`.`due_by` > '2024-04-18' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-18 12:57:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-18 12:57:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-18 12:57:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:57:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:57:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:57:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:57:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:57:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:57:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:57:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:57:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:57:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:57:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:57:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:59:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 12:59:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 12:59:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-18 12:59:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 13:08:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 13:08:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 13:08:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 13:08:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 13:08:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 13:08:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 13:41:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 13:41:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 13:41:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 13:41:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 13:41:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 13:41:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 13:41:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 13:41:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 13:41:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 13:41:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 13:41:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 13:41:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 15:54:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 15:54:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 15:54:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-18 15:54:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 15:54:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 15:54:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 15:54:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-18 15:54:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 15:54:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-21' and `tasks`.`due_by` > '2024-04-18' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-18 15:54:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-18' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-18 15:55:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 15:55:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 15:55:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-18 15:55:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 16:12:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-18 16:12:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-18 16:12:11] local.DEBUG: Current Balance: 0 [2024-04-18 16:12:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-21' and `tasks`.`due_by` > '2024-04-18' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-18 16:12:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-18' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-18 16:17:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 16:17:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 16:17:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-18 16:17:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 17:22:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 17:22:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 17:22:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 17:22:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 17:22:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 17:22:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 17:22:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-21' and `tasks`.`due_by` > '2024-04-18' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-18 17:22:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-18 17:22:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-18 17:22:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 17:22:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 17:22:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 17:22:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 17:22:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 17:22:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 23:14:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 23:14:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 23:14:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-18 23:14:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 23:15:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 23:15:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 23:15:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-18 23:15:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 23:15:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 23:15:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 23:15:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 23:15:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 23:15:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 23:15:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 23:15:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-18 23:15:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-18 23:15:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 23:15:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 23:15:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 23:15:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 23:15:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 23:15:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 23:15:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-18 23:15:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-18 23:15:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 23:15:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 23:15:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 23:15:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 23:15:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 23:15:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 23:15:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-18 23:15:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 23:15:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 23:15:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 23:15:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 23:15:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 23:15:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 23:15:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-18 23:15:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 23:15:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 23:15:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 23:15:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 23:15:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 23:15:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 23:15:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-18 23:15:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 23:15:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 23:15:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 23:15:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 23:15:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 23:15:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 23:15:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-18 23:15:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 23:15:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 23:15:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 23:15:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 23:15:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-18 23:15:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 23:16:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-18 23:16:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 23:16:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-18 23:16:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 23:16:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-18 23:16:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 23:16:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-18 23:16:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 23:16:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-18 23:16:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-18 23:16:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 23:16:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-18 23:16:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-18 23:16:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-18 23:16:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-18 23:16:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 23:16:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-18 23:16:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-18 23:16:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 23:16:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-18 23:16:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-18 23:16:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-18 23:16:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-18 23:16:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-17' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-18 23:16:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 00:04:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 00:04:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 00:04:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 00:04:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 00:04:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 00:04:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 00:06:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 00:06:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 00:06:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 00:06:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 00:06:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 00:06:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 00:07:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 00:07:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 00:07:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-19 00:07:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 00:07:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 00:07:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 00:07:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-19 00:07:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 00:07:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 00:07:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 00:07:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-19 00:07:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 00:07:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 00:07:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 00:07:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-19 00:07:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 00:10:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 00:10:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 00:10:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-19 00:10:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 00:10:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-22' and `tasks`.`due_by` > '2024-04-19' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-19 00:10:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-19' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-19 00:19:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 00:19:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 00:19:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-19 00:19:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 00:19:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 00:19:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 00:19:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-19 00:19:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 00:20:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 00:20:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 00:20:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-19 00:20:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 00:20:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 00:20:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 00:20:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-19 00:20:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 00:21:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 00:21:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 00:21:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-19 00:21:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 00:21:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 00:21:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 00:21:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-19 00:21:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 00:21:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 00:21:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 00:21:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-19 00:21:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 00:21:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 00:21:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 00:21:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-19 00:21:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 00:21:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-22' and `tasks`.`due_by` > '2024-04-19' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-19 00:21:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-19' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-19 00:28:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 00:28:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 00:28:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 00:28:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 00:28:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 00:28:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 00:33:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-22' and `tasks`.`due_by` > '2024-04-19' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-19 00:33:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-19 00:33:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-19 00:33:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 00:33:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 00:33:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 00:33:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 00:33:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 00:33:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 00:34:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-19 00:34:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 00:34:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-19 00:34:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 00:34:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-19 00:34:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 04:44:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 04:44:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 04:44:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-19 04:44:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 05:05:09] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"smith55@gmail.com","name":"smith"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello smith,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">72031<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-19 05:05:09] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.65601db0-fe0a-11ee-a07a-5254000b1a0e.18ef4be830b","object":"email"} [2024-04-19 05:05:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 05:05:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 05:05:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 05:05:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 05:05:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 05:05:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 05:05:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-22' and `tasks`.`due_by` > '2024-04-19' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-19 05:05:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-19 05:05:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-19 05:05:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 05:05:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 05:05:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 05:05:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 05:05:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 05:05:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 05:19:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 05:19:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 05:19:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 05:19:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 05:19:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 05:19:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 05:20:23] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"smith55@gmail.com","name":"smith"}}],"subject":"Password Reset Verification Code - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Password Reset OTP<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Password Reset OTP<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your password reset verification code is: <strong>66418<\\/strong><\\/p>\\n <p>Please use this code to reset your password.<\\/p>\\n <p>If you did not request this password reset or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-19 05:20:24] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.86411960-fe0c-11ee-a17c-525400fa05f6.18ef4cc75f6","object":"email"} [2024-04-19 06:10:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 06:10:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 06:10:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 06:10:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 06:10:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 06:10:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 06:10:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 06:10:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 06:10:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 06:10:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 06:10:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 06:10:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-04-19 07:05:02] local.ERROR: Error while clonning tasks and associated rewards, rolling back the transaction. Message: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'store_id' cannot be null (SQL: insert into `products` (`parent_product_id`, `product_type`, `group_id`, `product_category_id`, `product_name`, `description`, `product_image`, `product_sp`, `expires_on`, `is_featured`, `latitude`, `longitude`, `status`, `app_share_link`, `android_share_link`, `ios_share_link`, `created_by`, `deleted_at`, `created_at`, `updated_at`) values (201, REWARD, ?, 1, Skyhawk Model - Global, Skyhawk Model - Global, 17666028911712300185.png, 100, 2024-04-04, 0, ?, ?, ACTIVE, ?, ?, ?, ?, ?, 2024-04-19 07:05:02, 2024-04-19 07:05:02)) [2024-04-19 07:05:02] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(546): Illuminate\Database\Connection->run() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(498): Illuminate\Database\Connection->statement() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3322): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1869): Illuminate\Database\Query\Builder->insertGetId() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1330): Illuminate\Database\Eloquent\Builder->__call() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1295): Illuminate\Database\Eloquent\Model->insertAndSetId() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert() #9 /home/o5t6x7pgljbm/public_html/admin/app/Models/Product.php(247): Illuminate\Database\Eloquent\Model->save() #10 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(432): App\Models\Product->cloneProduct() #11 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(410): App\V2\Services\TaskService->cloneTaskAndReward() #12 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2CronController.php(37): App\V2\Services\TaskService->cloneTasksAndRewards() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2CronController->create_repeate_tasks() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #44 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #45 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #46 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #47 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #48 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #49 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #50 {main} [2024-04-19 09:09:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 09:10:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 09:10:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 09:10:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 09:10:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 09:10:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 09:10:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-22' and `tasks`.`due_by` > '2024-04-19' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-19 09:10:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-19 09:10:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-19 09:11:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 09:11:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 09:11:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 09:11:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 09:11:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 09:11:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 09:12:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-22' and `tasks`.`due_by` > '2024-04-19' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-19 09:12:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-19 09:12:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-19 09:12:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 09:12:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 09:12:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 09:12:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 09:12:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 09:12:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 10:32:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 10:32:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 10:32:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-19 10:32:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 10:32:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-22' and `tasks`.`due_by` > '2024-04-19' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-19 10:32:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-19' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-19 10:32:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 10:32:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 10:32:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-19 10:32:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 11:56:44] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"guiangkalven954@gmail.com","name":"Kalven Lee Lomboy Guiang"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Kalven Lee Lomboy Guiang,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">74275<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-19 11:56:44] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.e4af6d30-fe43-11ee-bfc4-525400d6cd4f.18ef6375383","object":"email"} [2024-04-19 11:57:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 11:57:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 11:57:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 11:57:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 11:57:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 11:57:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 11:58:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-22' and `tasks`.`due_by` > '2024-04-19' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-19 11:58:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-19 11:58:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-19 11:59:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-19 12:01:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-19 12:02:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-19 12:03:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-19 12:05:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 12:05:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:05:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 12:05:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:05:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 12:05:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:05:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 12:05:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:05:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-19 12:05:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:16:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 12:16:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:16:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-19 12:16:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:16:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-19 12:17:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 12:17:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:17:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-19 12:17:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:17:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-19 12:17:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:17:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-19 12:17:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 12:17:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:17:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-19 12:17:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:17:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-19 12:17:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:17:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-19 12:17:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:17:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-19 12:17:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-19 12:17:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-19 12:18:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-19 12:18:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-19 12:18:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-19 12:18:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-19 12:19:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 12:19:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:19:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-19 12:19:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:19:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 12:19:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:19:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 12:19:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:19:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 12:19:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:19:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 12:19:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:19:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-19 12:19:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:19:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 12:19:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:19:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 12:19:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:19:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 12:19:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:19:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-19 12:19:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 12:19:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:19:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 12:19:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:19:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 12:19:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:20:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 12:20:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:20:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 12:20:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:20:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 12:20:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:20:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-19 12:20:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-19 12:20:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 12:20:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:20:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 12:20:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:20:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 12:20:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:20:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-19 12:20:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-19 12:20:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 12:20:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:20:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 12:20:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:20:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 12:20:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:21:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-19 12:21:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-19 12:21:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 12:21:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:21:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 12:21:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:21:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 12:21:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:21:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 12:21:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:21:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 12:21:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:21:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 12:21:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:21:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-19 12:21:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:21:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-19 12:21:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:21:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-19 12:21:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:21:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-19 12:21:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-19 12:23:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-19 12:23:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-19 12:23:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-19 12:23:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 12:23:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:23:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 12:23:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:23:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 12:23:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:23:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-19 12:23:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-19 12:23:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 12:23:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:23:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 12:23:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:23:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 12:23:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:24:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 12:24:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:24:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-19 12:24:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:24:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-19 12:24:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-19 12:57:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 12:57:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 12:57:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-19 12:57:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 13:02:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 13:02:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 13:02:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-19 13:02:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 13:56:22] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"leo.guiang@gmail.com","name":"Leo Guiang"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Leo Guiang,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">39196<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-19 13:56:22] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.9b339120-fe54-11ee-bc9c-525400ae9113.18ef6a4db32","object":"email"} [2024-04-19 13:58:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 13:58:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 13:58:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 13:58:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 13:58:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 13:58:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 14:01:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 14:01:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 14:01:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 14:01:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 14:01:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 14:01:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 14:01:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-19 14:01:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 14:01:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 14:01:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 14:01:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 14:01:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 14:01:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 14:01:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 14:01:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-19 14:01:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 14:01:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-19 14:01:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 14:01:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-19 14:01:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 14:01:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-19 14:01:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 14:01:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-19 15:27:26] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"danny.odaniels@gmail.com","name":"Roy ODaniels"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Roy ODaniels,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">14319<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-19 15:27:26] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.53be0930-fe61-11ee-bfc4-525400d6cd4f.18ef6f83943","object":"email"} [2024-04-19 15:29:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 15:29:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 15:29:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 15:29:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 15:29:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 15:29:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 15:29:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-19 15:29:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 15:30:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-19 15:30:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 15:30:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-19 15:30:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 15:30:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-19 15:30:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 15:30:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-19 15:30:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 15:30:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 15:30:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 15:30:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 15:30:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 15:30:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 15:31:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 15:31:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 15:31:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-19 15:31:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 15:31:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-19 15:31:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 15:31:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 15:31:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 15:31:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-19 15:31:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 16:34:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 16:34:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 16:34:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 16:34:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 16:34:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 16:34:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 18:59:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 18:59:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 18:59:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 18:59:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 18:59:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 18:59:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 18:59:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-19 18:59:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 18:59:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 18:59:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 18:59:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 18:59:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 18:59:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 18:59:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-22' and `tasks`.`due_by` > '2024-04-19' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-19 18:59:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-19 18:59:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-19 19:00:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 19:00:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 19:00:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 19:00:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 19:00:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 19:00:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 19:00:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-19 19:00:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-19 19:00:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 19:00:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 19:00:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 19:00:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 19:00:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 19:00:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 19:00:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-19 19:00:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 19:00:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 19:00:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 19:00:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 19:00:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 19:00:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 19:00:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-19 19:00:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 19:00:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 19:00:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 19:00:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 19:00:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-18' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-19 19:00:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-19 19:00:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-20 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-04-20 07:05:02] local.ERROR: Error while clonning tasks and associated rewards, rolling back the transaction. Message: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'created_by' in 'field list' (SQL: insert into `task_assigned` (`user_id`, `task_id`, `group_id`, `status`, `task_details_for_approval`, `deleted_at`, `created_by`, `updated_at`, `created_at`) values (220, 266, 76, PENDING, ?, ?, ?, 2024-04-20 07:05:02, 2024-04-20 07:05:02)) [2024-04-20 07:05:02] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(546): Illuminate\Database\Connection->run() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(498): Illuminate\Database\Connection->statement() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3322): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1869): Illuminate\Database\Query\Builder->insertGetId() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1330): Illuminate\Database\Eloquent\Builder->__call() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1295): Illuminate\Database\Eloquent\Model->insertAndSetId() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert() #9 /home/o5t6x7pgljbm/public_html/admin/app/Models/TaskAssigned.php(82): Illuminate\Database\Eloquent\Model->save() #10 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(466): App\Models\TaskAssigned->cloneTaskAssignee() #11 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(410): App\V2\Services\TaskService->cloneTaskAndReward() #12 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2CronController.php(37): App\V2\Services\TaskService->cloneTasksAndRewards() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2CronController->create_repeate_tasks() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #44 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #45 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #46 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #47 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #48 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #49 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #50 {main} [2024-04-20 12:14:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 12:14:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 12:14:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 12:14:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 12:14:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 12:14:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 12:14:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 12:14:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 12:14:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 12:14:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 12:14:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 12:14:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 16:22:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-23' and `tasks`.`due_by` > '2024-04-20' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-20 16:22:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-20 16:22:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-20 16:23:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 16:23:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 16:23:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-20 16:23:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 16:24:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-23' and `tasks`.`due_by` > '2024-04-20' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-20 16:24:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-20' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-20 16:24:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 16:24:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 16:24:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-20 16:24:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 16:28:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 16:28:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 16:28:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 16:28:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 16:28:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 16:28:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 16:29:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 16:29:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 16:29:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-20 16:29:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 16:36:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 16:36:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 16:36:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-20 16:36:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 16:47:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-23' and `tasks`.`due_by` > '2024-04-20' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-20 16:47:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-20' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-20 16:49:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 16:49:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 16:49:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-20 16:49:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 16:59:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 16:59:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 16:59:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 16:59:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 16:59:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 16:59:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 17:02:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-20 17:02:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 17:02:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 17:02:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 17:02:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 17:02:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 17:02:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 17:02:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-20 17:02:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 17:02:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 17:02:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 17:02:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 17:02:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 17:02:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 17:02:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-20 17:02:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 17:02:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 17:02:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 17:02:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 17:02:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 17:02:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 17:03:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-20 17:03:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 17:03:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 17:03:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 17:03:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 17:03:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 17:03:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 17:04:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 17:04:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 17:04:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 17:04:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 17:04:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 17:04:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 19:18:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 19:18:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 19:18:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 19:18:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 19:18:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 19:18:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 19:18:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 19:18:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 19:18:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 19:18:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 19:18:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 19:18:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 22:07:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 22:07:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 22:07:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 22:07:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 22:07:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 22:07:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 22:07:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 22:07:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 22:07:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 22:07:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 22:07:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 22:07:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 22:07:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 22:07:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 22:07:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 22:07:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 22:07:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 22:07:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 22:08:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 22:08:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 22:08:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 22:08:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 22:08:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 22:08:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 23:25:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-20 23:25:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 23:25:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 23:25:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 23:25:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 23:25:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 23:25:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 23:25:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-20 23:25:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 23:25:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 23:25:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 23:25:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 23:25:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 23:25:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 23:26:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-20 23:26:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 23:26:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-20 23:26:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 23:26:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-20 23:26:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 23:26:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-20 23:26:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 23:27:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-20 23:28:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-23' and `tasks`.`due_by` > '2024-04-20' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-20 23:28:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-20 23:28:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-20 23:30:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-20 23:30:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 23:30:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-19' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-20 23:30:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-20 23:30:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-23' and `tasks`.`due_by` > '2024-04-20' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-20 23:30:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-20' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-21 01:32:40] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"escalantejohn2@gmail.com","name":"John m Escalante"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello John m Escalante,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">81629<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-21 01:32:40] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.0b028cb0-ff7f-11ee-bc9c-525400ae9113.18efe48b0fb","object":"email"} [2024-04-21 02:04:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 02:04:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 02:04:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 02:04:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 02:04:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 02:04:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 02:04:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 02:04:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 02:04:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 02:04:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 02:04:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 02:04:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 02:04:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-21 02:04:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 02:04:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-21 02:04:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 02:05:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-21 02:05:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 02:05:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-21 02:05:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 03:19:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-24' and `tasks`.`due_by` > '2024-04-21' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-21 03:19:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-21 03:19:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-21 03:19:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-21 03:19:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-21 03:25:23] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kadence.guiang@gmail.com","name":"kadence.guiang@gmail.com"}}],"subject":"Group Invitation - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Group Invitation - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Group Invitation<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello kadence.guiang@gmail.com,<\\/p>\\n <p>You have been invited to join the \\"\\" group on Coins for College.<\\/p>\\n <p>Here are some details about the group:<\\/p>\\n <ul>\\n <li>Group Name: <\\/li>\\n <li>Invited By: Leo Guiang<\\/li>\\n <li>Role: Child<\\/li>\\n <\\/ul>\\n <p>Click the links below to accept the invitation:<\\/p>\\n\\n <!-- Android App Badge and Link -->\\n <a href=\\"https:\\/\\/play.google.com\\/store\\/apps\\/details?id=com.coins.college\\" style=\\"display: inline-block; margin-right: 10px;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/google-play-badge.png\\" alt=\\"Download on Google Play\\" width=\\"150\\">\\n <\\/a>\\n\\n <!-- iOS App Badge and Link -->\\n <a href=\\"https:\\/\\/apps.apple.com\\/us\\/app\\/coins-for-college\\/id6469045127\\" style=\\"display: inline-block;\\">\\n <img src=\\"https:\\/\\/coinsforcollege.org\\/admin\\/public\\/app-assets\\/images\\/badges\\/app-store-badge.png\\" alt=\\"Download on the App Store\\" width=\\"150\\">\\n <\\/a>\\n\\n <p>If you have already signed up, you can login to app and accept the invitation from the app<\\/a>.<\\/p>\\n\\n <p>If you did not expect this invitation or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #673ab7; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-21 03:25:24] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.ca6b90b0-ff8e-11ee-bc9c-525400ae9113.18efeafe53b","object":"email"} [2024-04-21 04:32:12] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"cambriakaywright@gmail.com","name":"Cambria Wright"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Cambria Wright,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">20125<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-21 04:32:12] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.1fa47ed0-ff98-11ee-8b14-525400103106.18efeed0f3d","object":"email"} [2024-04-21 04:33:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 04:33:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 04:33:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 04:33:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 04:33:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 04:33:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 04:34:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-24' and `tasks`.`due_by` > '2024-04-21' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-21 04:34:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-21 04:34:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-21 04:34:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-21 04:34:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-21 04:34:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-21 04:34:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 04:34:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 04:34:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 04:34:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 04:34:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 04:34:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 04:34:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-21 04:34:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 04:34:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 04:34:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 04:34:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 04:34:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 04:34:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 05:41:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 05:41:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 05:41:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-21 05:41:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 05:41:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 05:41:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 05:41:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 05:41:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 05:41:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 05:41:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 05:41:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-21 05:41:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 05:41:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-21 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-04-21 07:05:02] local.ERROR: Error while clonning tasks and associated rewards, rolling back the transaction. Message: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'created_by' in 'field list' (SQL: insert into `task_assigned` (`user_id`, `task_id`, `group_id`, `status`, `task_details_for_approval`, `deleted_at`, `created_by`, `updated_at`, `created_at`) values (220, 267, 76, PENDING, ?, ?, ?, 2024-04-21 07:05:02, 2024-04-21 07:05:02)) [2024-04-21 07:05:02] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(546): Illuminate\Database\Connection->run() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(498): Illuminate\Database\Connection->statement() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3322): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1869): Illuminate\Database\Query\Builder->insertGetId() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1330): Illuminate\Database\Eloquent\Builder->__call() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1295): Illuminate\Database\Eloquent\Model->insertAndSetId() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert() #9 /home/o5t6x7pgljbm/public_html/admin/app/Models/TaskAssigned.php(82): Illuminate\Database\Eloquent\Model->save() #10 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(466): App\Models\TaskAssigned->cloneTaskAssignee() #11 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(410): App\V2\Services\TaskService->cloneTaskAndReward() #12 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2CronController.php(37): App\V2\Services\TaskService->cloneTasksAndRewards() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2CronController->create_repeate_tasks() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #44 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #45 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #46 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #47 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #48 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #49 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #50 {main} [2024-04-21 10:58:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 10:58:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 10:58:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-21 10:58:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 10:59:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 10:59:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 10:59:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-21 10:59:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 14:23:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 14:23:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 14:23:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 14:23:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 14:23:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 14:23:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 14:23:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-21 14:23:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-21 14:24:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 14:24:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 14:24:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 14:24:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 14:24:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 14:24:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 14:24:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-21 14:24:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-21 14:24:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-24' and `tasks`.`due_by` > '2024-04-21' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-21 14:24:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-21 14:24:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-21 14:24:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-21 14:24:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 14:24:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 14:24:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 14:24:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 14:24:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 14:24:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 14:24:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 14:24:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 14:24:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 14:24:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 14:24:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 14:24:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 14:24:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 14:24:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 14:24:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 14:24:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 14:24:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 14:24:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 14:54:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 14:54:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 14:54:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-21 14:54:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 14:55:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 14:55:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 14:55:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-21 14:55:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 16:58:40] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"miamcdaniel@ymail.com","name":"Mia McDaniel"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Mia McDaniel,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">67212<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-21 16:58:41] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.67aa2aa0-0000-11ef-99cc-525400f92481.18f01987a4a","object":"email"} [2024-04-21 17:00:12] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"miamcdaniel@ymail.com","name":"Mia McDaniel"}}],"subject":"Resend Verification Code - Coins for College","htmlbody":"<!-- otp_email_template.blade.php -->\\n<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>OTP Email<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>OTP Verification<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your verification code is: <strong>12801<\\/strong><\\/p>\\n <p>Please use this code to complete the verification process.<\\/p>\\n <p>If you did not request this verification or have any concerns, please contact our support team immediately.<\\/p>\\n <p>Thank you for choosing Coins For College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins For College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-21 17:00:13] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.9e7962d0-0000-11ef-a07a-5254000b1a0e.18f0199e17d","object":"email"} [2024-04-21 17:02:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 17:02:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 17:02:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 17:02:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 17:02:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 17:02:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 17:49:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 17:49:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 17:49:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 17:49:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 17:49:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 17:49:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 17:50:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-24' and `tasks`.`due_by` > '2024-04-21' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-21 17:50:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-21 17:50:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-21 17:50:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-24' and `tasks`.`due_by` > '2024-04-21' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-21 17:50:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-21 17:50:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-21 17:50:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 17:50:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 17:50:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 17:50:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 17:50:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 17:50:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 17:50:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-21 17:50:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-21 17:50:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 17:50:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 17:50:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 17:50:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 17:50:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 17:50:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 17:50:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-21 17:50:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 17:50:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 17:50:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 17:50:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 17:50:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 17:50:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 17:50:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-21 17:50:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 17:50:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 17:50:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 17:50:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 17:50:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 17:50:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 17:50:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 17:50:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 17:50:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 17:50:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 17:50:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 17:50:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 20:55:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 20:55:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 20:55:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-21 20:55:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 20:57:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 20:57:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 20:57:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-21 20:57:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 20:57:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 20:57:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 20:57:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-21 20:57:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 20:57:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 20:57:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 20:57:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-21 20:57:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 20:57:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-21 20:57:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 20:57:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-20' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-21 20:57:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-21 20:57:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-24' and `tasks`.`due_by` > '2024-04-21' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-21 20:57:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-21' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-22 04:05:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 04:05:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 04:05:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 04:05:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 04:05:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 04:05:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 04:05:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 04:05:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 04:05:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 04:05:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 04:05:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 04:05:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 04:12:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-25' and `tasks`.`due_by` > '2024-04-22' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-22 04:12:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-22 04:12:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-22 04:12:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 04:12:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 04:12:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 04:12:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 04:12:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 04:12:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 04:13:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-22 04:13:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 04:13:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 04:13:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 04:13:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 04:13:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 04:13:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 04:13:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-22 04:13:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 04:13:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 04:13:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 04:13:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 04:13:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 04:13:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 05:00:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 05:00:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 05:00:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-22 05:00:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 05:00:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 05:00:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 05:00:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-22 05:00:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 05:01:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 05:01:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 05:01:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 05:01:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 05:01:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 05:01:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 05:20:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 05:20:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 05:20:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 05:20:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 05:20:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 05:20:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 06:21:53] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"heavenfykes2012@yahoo.com","name":"Harry Fykes Jr"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Harry Fykes Jr,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">59055<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-22 06:21:53] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.9c9ac2e0-0070-11ef-9b18-525400d4bb1c.18f0477d60e","object":"email"} [2024-04-22 06:22:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 06:22:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 06:22:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 06:22:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 06:22:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 06:22:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 06:23:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 06:23:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 06:23:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 06:23:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 06:23:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 06:23:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 06:24:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-25' and `tasks`.`due_by` > '2024-04-22' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-22 06:24:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-22 06:24:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-22 06:24:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 06:24:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 06:24:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 06:24:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 06:24:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 06:24:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 06:24:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 06:24:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 06:24:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 06:24:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 06:24:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 06:24:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-04-22 07:05:02] local.ERROR: Error while clonning tasks and associated rewards, rolling back the transaction. Message: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'created_by' in 'field list' (SQL: insert into `task_assigned` (`user_id`, `task_id`, `group_id`, `status`, `task_details_for_approval`, `deleted_at`, `created_by`, `updated_at`, `created_at`) values (220, 268, 76, PENDING, ?, ?, ?, 2024-04-22 07:05:02, 2024-04-22 07:05:02)) [2024-04-22 07:05:02] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(546): Illuminate\Database\Connection->run() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(498): Illuminate\Database\Connection->statement() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3322): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1869): Illuminate\Database\Query\Builder->insertGetId() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1330): Illuminate\Database\Eloquent\Builder->__call() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1295): Illuminate\Database\Eloquent\Model->insertAndSetId() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert() #9 /home/o5t6x7pgljbm/public_html/admin/app/Models/TaskAssigned.php(82): Illuminate\Database\Eloquent\Model->save() #10 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(466): App\Models\TaskAssigned->cloneTaskAssignee() #11 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(410): App\V2\Services\TaskService->cloneTaskAndReward() #12 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2CronController.php(37): App\V2\Services\TaskService->cloneTasksAndRewards() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2CronController->create_repeate_tasks() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #44 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #45 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #46 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #47 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #48 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #49 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #50 {main} [2024-04-22 07:31:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 07:31:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 07:31:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 07:31:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 07:31:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 07:31:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 10:53:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 10:53:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 10:53:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-22 10:53:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 12:45:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 12:45:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 12:45:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-22 12:45:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 12:47:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 12:47:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 12:47:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-22 12:47:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 15:02:29] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"Rvwms1973@gmail.com","name":"Rhonda V Williams"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Rhonda V Williams,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">96725<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-22 15:02:29] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.56f41040-00b9-11ef-bfc4-525400d6cd4f.18f06547744","object":"email"} [2024-04-22 15:03:45] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"moto_vation@yahoo.com","name":"Justin Butler"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Justin Butler,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">15480<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-22 15:03:46] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.846b29a0-00b9-11ef-8b14-525400103106.18f0655a13a","object":"email"} [2024-04-22 15:04:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 15:04:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 15:04:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 15:04:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 15:04:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 15:04:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 15:04:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 15:04:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 15:04:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-22 15:04:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 15:04:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-22 15:04:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-22 15:04:46] local.DEBUG: Current Balance: 0 [2024-04-22 15:04:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 15:04:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 15:04:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-22 15:04:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 15:05:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 15:05:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 15:05:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 15:05:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 15:05:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 15:05:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 15:05:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-25' and `tasks`.`due_by` > '2024-04-22' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-22 15:05:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-22 15:05:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-22 15:05:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 15:05:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 15:05:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 15:05:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 15:05:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 15:05:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 15:05:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 15:05:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 15:05:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-22 15:05:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 15:06:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-22 15:06:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 15:06:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 15:06:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 15:06:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-22 15:06:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 15:06:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-22 15:06:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 15:06:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 15:06:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 15:06:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-22 15:06:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 15:06:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-22 15:06:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 15:06:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-22 15:06:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-22 15:13:33] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"moto_vation@yahoo.com","name":"Justin Butler"}}],"subject":"Resend Verification Code - Coins for College","htmlbody":"<!-- otp_email_template.blade.php -->\\n<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>OTP Email<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>OTP Verification<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your verification code is: <strong>46207<\\/strong><\\/p>\\n <p>Please use this code to complete the verification process.<\\/p>\\n <p>If you did not request this verification or have any concerns, please contact our support team immediately.<\\/p>\\n <p>Thank you for choosing Coins For College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins For College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-22 15:13:33] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.e2894a20-00ba-11ef-9b18-525400d4bb1c.18f065e97c2","object":"email"} [2024-04-22 15:14:27] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"moto_vation@yahoo.com","name":"Justin Butler"}}],"subject":"Resend Verification Code - Coins for College","htmlbody":"<!-- otp_email_template.blade.php -->\\n<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>OTP Email<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>OTP Verification<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your verification code is: <strong>98885<\\/strong><\\/p>\\n <p>Please use this code to complete the verification process.<\\/p>\\n <p>If you did not request this verification or have any concerns, please contact our support team immediately.<\\/p>\\n <p>Thank you for choosing Coins For College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins For College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-22 15:14:28] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.02ec9c40-00bb-11ef-8b14-525400103106.18f065f6c04","object":"email"} [2024-04-22 15:16:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 15:16:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 15:16:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 15:16:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 15:16:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 15:16:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 15:25:26] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"bksmith59@gmail.com","name":"Brian Smith"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Brian Smith,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">96197<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-22 15:25:27] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.8be0c570-00bc-11ef-8b14-525400103106.18f06697b47","object":"email"} [2024-04-22 16:14:41] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"tadastubbs@yahoo.com","name":"Tamale Stubbs"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Tamale Stubbs,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">16942<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-22 16:14:42] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.6d292350-00c3-11ef-bc9c-525400ae9113.18f06969205","object":"email"} [2024-04-22 16:16:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 16:16:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 16:16:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 16:16:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 16:16:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 16:16:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 16:16:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-22 16:16:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 16:16:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-22 16:16:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 16:17:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-22 16:17:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 16:17:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-22 16:17:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 16:17:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-22 16:18:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-22 16:18:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-22 16:18:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-22 16:18:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-22 16:19:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 16:19:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 16:19:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 16:19:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 16:19:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 16:19:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 16:27:55] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"miltonsmith3@icloud.com","name":"Milton Smith"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Milton Smith,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">86184<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-22 16:27:55] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.4631f090-00c5-11ef-b0f3-52540064429e.18f06a2ae19","object":"email"} [2024-04-22 16:29:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 16:29:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 16:29:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 16:29:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 16:29:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 16:29:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 16:30:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 16:30:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 16:30:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 16:30:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 16:30:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 16:30:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 17:05:00] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"jasmine.t.robinson@eagles.usm.edu","name":"Jasmine Shaw"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Jasmine Shaw,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">22251<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-22 17:05:01] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.748e6ea0-00ca-11ef-9b18-525400d4bb1c.18f06c4a28a","object":"email"} [2024-04-22 17:06:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 17:06:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 17:06:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 17:06:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 17:06:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 17:06:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 17:29:52] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kennethmarmol1994@gmail.com","name":"Kenny Marmol"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Kenny Marmol,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">38725<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-22 17:29:52] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.ed7d6b10-00cd-11ef-b0f3-52540064429e.18f06db6441","object":"email"} [2024-04-22 17:31:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 17:31:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 17:31:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 17:31:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 17:31:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 17:31:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 17:34:48] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"greekmommie101@yahoo.com","name":"Chantell Fithian"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Chantell Fithian,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">13668<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-22 17:34:48] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.9e10f870-00ce-11ef-a07a-5254000b1a0e.18f06dfe977","object":"email"} [2024-04-22 17:35:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 17:35:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 17:35:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 17:35:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 17:35:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 17:35:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 17:35:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 17:35:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 17:35:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 17:35:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 17:35:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 17:35:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 17:35:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-25' and `tasks`.`due_by` > '2024-04-22' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-22 17:35:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-22 17:35:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-22 17:36:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-22 17:36:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-22 17:36:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-25' and `tasks`.`due_by` > '2024-04-22' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-22 17:36:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-22 17:36:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-22 17:39:44] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"lcook0301@gmail.com","name":"latasha cook"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello latasha cook,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">78402<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-22 17:39:44] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.4e6f1df0-00cf-11ef-bc9c-525400ae9113.18f06e46d4f","object":"email"} [2024-04-22 17:42:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 17:42:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 17:42:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 17:42:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 17:42:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 17:42:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 18:23:29] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"gaughfer@yahoo.com","name":"austin gaughf"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello austin gaughf,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">86373<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-22 18:23:30] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.6b729480-00d5-11ef-b0f3-52540064429e.18f070c7dc8","object":"email"} [2024-04-22 18:24:05] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"gaughfer@yahoo.com","name":"austin gaughf"}}],"subject":"Resend Verification Code - Coins for College","htmlbody":"<!-- otp_email_template.blade.php -->\\n<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>OTP Email<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>OTP Verification<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your verification code is: <strong>93103<\\/strong><\\/p>\\n <p>Please use this code to complete the verification process.<\\/p>\\n <p>If you did not request this verification or have any concerns, please contact our support team immediately.<\\/p>\\n <p>Thank you for choosing Coins For College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins For College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-22 18:24:05] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.805f7bb0-00d5-11ef-99cc-525400f92481.18f070d06eb","object":"email"} [2024-04-22 21:07:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 21:07:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 21:07:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 21:07:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 21:07:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 21:07:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 21:07:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 21:07:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 21:07:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 21:07:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 21:07:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 21:07:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 21:08:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-22 21:08:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 21:08:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-22 21:08:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 21:08:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-22 21:08:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 21:08:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-22 21:08:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 21:08:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-22 21:09:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-25' and `tasks`.`due_by` > '2024-04-22' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-22 21:09:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-22 21:09:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-22 21:09:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-22 21:09:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-22 21:10:38] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"yourfuturecountsllc@gmail.com","name":"Rashawn Bey"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Rashawn Bey,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">64057<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-22 21:10:38] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.c4d88220-00ec-11ef-a07a-5254000b1a0e.18f07a58342","object":"email"} [2024-04-22 21:11:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 21:11:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 21:11:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 21:11:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 21:11:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 21:11:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 21:11:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 21:11:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 21:11:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 21:11:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 21:11:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 21:11:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 21:11:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-22 21:11:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-22 21:11:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 21:11:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 21:11:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 21:11:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 21:11:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 21:11:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 21:12:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-25' and `tasks`.`due_by` > '2024-04-22' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-22 21:12:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-22 21:12:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-22 21:12:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 21:12:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 21:12:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 21:12:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 21:12:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 21:12:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 21:12:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 21:12:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 21:12:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 21:12:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 21:12:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 21:12:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 21:12:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 21:12:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 21:12:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 21:12:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 21:12:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 21:12:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 21:12:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-22 21:12:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-22 21:12:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 21:12:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 21:12:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 21:12:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 21:12:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 21:12:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 23:03:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 23:03:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 23:03:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 23:03:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 23:03:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 23:03:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 23:25:36] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"monteitm@gmail.com","name":"Melissa Monteith"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Melissa Monteith,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">54194<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-22 23:25:36] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.9f85c7e0-00ff-11ef-b0f3-52540064429e.18f0821135e","object":"email"} [2024-04-22 23:28:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 23:28:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 23:28:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 23:28:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-22 23:28:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-21' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-22 23:28:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 03:46:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 03:46:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 03:46:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 03:46:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 03:46:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 03:46:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 03:58:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 03:58:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 03:58:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 03:58:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 03:58:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 03:58:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 03:59:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-23 03:59:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 03:59:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 03:59:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 03:59:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 03:59:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 03:59:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 03:59:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-23 03:59:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 03:59:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 03:59:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 03:59:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 03:59:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 03:59:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 03:59:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 03:59:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 03:59:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-23 03:59:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 03:59:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-23 03:59:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 03:59:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 03:59:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 03:59:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-23 03:59:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 03:59:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-23 03:59:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 03:59:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 03:59:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-23 03:59:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 03:59:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-23 03:59:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 03:59:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 03:59:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-23 03:59:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 03:59:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 03:59:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 03:59:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 03:59:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 03:59:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 03:59:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 04:00:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-23 04:00:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-23 04:00:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 04:00:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 04:00:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 04:00:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 04:00:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 04:00:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 04:00:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 04:00:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 04:00:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-23 04:00:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 04:00:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 04:00:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 04:00:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 04:00:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 04:00:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 04:00:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 04:41:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 04:41:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 04:41:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 04:41:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 04:41:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 04:41:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:30:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:30:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:30:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:30:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:30:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:30:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:30:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:30:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:30:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:30:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:30:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:30:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:31:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:31:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:31:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:31:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:31:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:31:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:31:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-23 05:31:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-23 05:31:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-23 05:31:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-23 05:31:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-23 05:31:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-23 05:32:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-26' and `tasks`.`due_by` > '2024-04-23' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-23 05:32:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-23 05:32:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-23 05:32:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-26' and `tasks`.`due_by` > '2024-04-23' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-23 05:32:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-23 05:32:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-23 05:32:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-23 05:32:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-23 05:32:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-26' and `tasks`.`due_by` > '2024-04-23' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-23 05:32:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-23 05:32:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-23 05:33:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:33:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:33:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:33:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:33:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:33:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:33:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:33:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:33:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:33:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:33:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:33:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:33:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-23 05:33:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-23 05:33:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:33:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:33:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:33:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:33:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:33:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:33:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-23 05:34:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:34:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:34:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:34:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:34:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:34:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:34:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-23 05:34:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-23 05:34:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-23 05:34:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-23 05:34:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-23 05:34:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-23 05:34:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-23 05:34:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:34:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:34:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:34:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:34:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:34:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:35:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-23 05:35:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-23 05:35:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:35:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:35:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:35:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:35:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:35:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:35:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:35:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:35:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:35:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:35:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:35:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:35:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:35:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:35:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:35:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:35:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:35:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:35:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:35:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:35:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-23 05:35:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:36:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:36:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:36:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:36:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:36:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:36:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:36:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:36:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:36:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-23 05:36:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:36:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-26' and `tasks`.`due_by` > '2024-04-23' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-23 05:36:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-23 05:36:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-23 05:36:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-23 05:36:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-26' and `tasks`.`due_by` > '2024-04-23' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-23 05:36:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-23 05:36:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-23 05:36:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:36:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:36:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:36:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:36:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:36:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:37:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:37:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:37:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:37:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:37:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:37:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:54:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:54:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:54:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:54:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:54:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:54:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:54:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-23 05:54:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-23 05:54:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-23 05:54:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-23 05:54:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-23 05:54:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-23 05:54:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-23 05:55:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-23 05:55:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-23 05:55:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-23 05:55:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-23 05:55:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-23 05:55:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:55:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:55:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:55:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:55:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:55:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:55:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-23 05:55:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-23 05:56:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:56:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:56:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:56:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:56:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:56:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:56:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:56:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:56:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:56:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:56:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:56:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:56:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:56:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:56:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-23 05:56:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:56:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:56:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:56:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:56:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:56:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:56:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:56:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-23 05:56:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-23 05:56:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:56:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:56:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:56:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:56:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:56:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:56:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:56:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:56:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-23 05:56:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:56:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:56:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:56:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:56:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:56:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:56:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:57:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-23 05:57:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-23 05:57:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:57:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:57:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:57:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:57:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:57:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:57:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:57:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:57:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-23 05:57:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:57:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-23 05:57:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-23 05:57:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:57:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:57:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-23 05:57:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:57:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:57:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:57:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:57:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:57:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:57:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:57:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:57:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:57:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-23 05:57:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:57:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-23 05:57:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-23 05:58:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:58:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:58:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-23 05:58:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:58:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:58:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:58:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:58:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:58:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:58:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:58:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:58:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:58:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-23 05:58:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:58:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-23 05:58:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-23 05:58:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:58:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:58:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-23 05:58:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:58:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-26' and `tasks`.`due_by` > '2024-04-23' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-23 05:58:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-23 05:58:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-23 05:59:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:59:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:59:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:59:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 05:59:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 05:59:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-04-23 07:05:02] local.ERROR: Error while clonning tasks and associated rewards, rolling back the transaction. Message: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'created_by' in 'field list' (SQL: insert into `task_assigned` (`user_id`, `task_id`, `group_id`, `status`, `task_details_for_approval`, `deleted_at`, `created_by`, `updated_at`, `created_at`) values (220, 269, 76, PENDING, ?, ?, ?, 2024-04-23 07:05:02, 2024-04-23 07:05:02)) [2024-04-23 07:05:02] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(546): Illuminate\Database\Connection->run() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(498): Illuminate\Database\Connection->statement() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3322): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1869): Illuminate\Database\Query\Builder->insertGetId() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1330): Illuminate\Database\Eloquent\Builder->__call() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1295): Illuminate\Database\Eloquent\Model->insertAndSetId() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert() #9 /home/o5t6x7pgljbm/public_html/admin/app/Models/TaskAssigned.php(82): Illuminate\Database\Eloquent\Model->save() #10 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(466): App\Models\TaskAssigned->cloneTaskAssignee() #11 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(410): App\V2\Services\TaskService->cloneTaskAndReward() #12 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2CronController.php(37): App\V2\Services\TaskService->cloneTasksAndRewards() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2CronController->create_repeate_tasks() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #44 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #45 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #46 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #47 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #48 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #49 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #50 {main} [2024-04-23 09:09:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 09:09:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 09:09:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 09:09:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 09:09:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 09:09:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 09:15:13] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"ecingrassia06@gmail.com","name":"Eric & Chelcie Ingrassia"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Eric & Chelcie Ingrassia,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">06602<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-23 09:15:13] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.fe00aa90-0151-11ef-a07a-5254000b1a0e.18f0a3ce3b9","object":"email"} [2024-04-23 09:16:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 09:16:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 09:16:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 09:16:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 09:16:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 09:16:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 09:16:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 09:16:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 09:16:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 09:16:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 09:16:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 09:16:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 09:17:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-26' and `tasks`.`due_by` > '2024-04-23' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-23 09:17:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-23 09:17:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-23 09:17:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 09:17:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 09:17:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 09:17:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 09:17:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 09:17:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 10:15:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 10:15:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 10:15:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 10:15:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 10:15:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 10:15:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 10:16:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 10:16:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 10:16:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-23 10:16:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 10:16:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 10:16:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 10:16:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-23 10:16:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 10:16:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 10:16:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 10:16:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-23 10:16:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 10:25:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 10:25:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 10:25:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-23 10:25:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 10:27:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 10:27:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 10:27:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-23 10:27:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 10:28:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 10:28:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 10:28:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-23 10:28:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 10:51:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 10:51:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 10:51:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-23 10:51:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 10:52:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 10:52:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 10:52:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-23 10:52:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 10:53:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 10:53:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 10:53:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-23 10:53:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 11:41:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 11:41:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 11:41:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-23 11:41:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 11:45:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 11:45:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 11:45:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-23 11:45:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 11:47:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 11:47:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 11:47:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-23 11:47:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 12:12:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 12:12:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 12:12:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 12:12:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 12:12:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 12:12:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 12:12:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-26' and `tasks`.`due_by` > '2024-04-23' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-23 12:12:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-23 12:12:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-23 12:13:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 12:13:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 12:13:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 12:13:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 12:13:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 12:13:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 13:12:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 13:12:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 13:12:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 13:12:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 13:12:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 13:12:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 13:12:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 13:12:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 13:12:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 13:12:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 13:12:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 13:12:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 14:55:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 14:55:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 14:55:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 14:55:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 14:55:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 14:55:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 16:41:31] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"Cdasilva6@yahoo.com","name":"Chris dasilva"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Chris dasilva,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">50018<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-23 16:41:31] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.570e0630-0190-11ef-99cc-525400f92481.18f0bd57e13","object":"email"} [2024-04-23 16:44:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 16:44:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 16:44:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 16:44:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 16:44:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 16:44:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 16:45:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-26' and `tasks`.`due_by` > '2024-04-23' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-23 16:45:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-23 16:45:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-23 17:43:22] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"llgenis@yahoo.com","name":"Genis Llamas"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Genis Llamas,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">63212<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-23 17:43:22] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.fad207a0-0198-11ef-a07a-5254000b1a0e.18f0c0e1d1a","object":"email"} [2024-04-23 17:45:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 17:45:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 17:45:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-23 17:45:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 17:45:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 17:45:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 17:45:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-23 17:45:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 17:45:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-23 17:45:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-23 17:45:44] local.DEBUG: Current Balance: 0 [2024-04-23 17:45:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 17:45:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 17:45:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-23 17:45:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 17:45:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 17:45:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 17:45:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-23 17:45:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 17:45:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-26' and `tasks`.`due_by` > '2024-04-23' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-23 17:45:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-23' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-23 17:45:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-23 17:45:59] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-23 17:47:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 17:47:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 17:47:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-23 17:47:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 17:48:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-23 17:48:04] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-23 17:48:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 17:48:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 17:48:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 17:48:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 17:48:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 17:48:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 17:48:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 17:48:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 17:48:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 17:48:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 17:48:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 17:48:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 17:48:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-26' and `tasks`.`due_by` > '2024-04-23' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-23 17:48:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-23 17:48:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-23 17:48:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-23 17:48:39] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-23 17:48:39] local.DEBUG: task is not assigned to user, but it is visible, so creating new assignment [2024-04-23 17:48:39] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"llgenis@yahoo.com","name":"Genis Llamas"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Genis Llamas,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Complete PLE<\\/li>\\n <li><strong>Assigned By:<\\/strong> Aman<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-23 17:48:39] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.b79d5420-0199-11ef-8b14-525400103106.18f0c12f262","object":"email"} [2024-04-23 17:48:43] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"aman@coinsforcollege.org","name":"Aman"}}],"subject":"Task Claimed","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Task Pending Approval<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Task Pending Approval<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Aman,<\\/p>\\n <p>Your child has completed a task and it is now pending your approval:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> Complete PLE<\\/li>\\n <li><strong>Assigned To:<\\/strong> Genis Llamas<\\/li>\\n <\\/ul>\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-23 17:48:44] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.ba7c0a10-0199-11ef-a07a-5254000b1a0e.18f0c130531","object":"email"} [2024-04-23 17:48:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-23 17:48:44] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-23 17:48:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 17:48:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 17:48:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-23 17:48:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 17:49:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 17:49:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 17:49:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-23 17:49:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 18:18:03] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"jeanmedastin@gmail.com","name":"Jean-Jacques Medastin"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Jean-Jacques Medastin,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">83691<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-23 18:18:03] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.d350b5f0-019d-11ef-a07a-5254000b1a0e.18f0c2ddecf","object":"email"} [2024-04-23 18:20:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 18:20:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 18:20:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 18:20:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 18:20:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 18:20:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 19:10:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 19:10:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 19:10:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 19:10:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 19:10:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 19:10:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 20:33:10] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"gushaca@yahoo.com","name":"Gregory Gusha"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Gregory Gusha,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">39724<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-23 20:33:10] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.b3454d30-01b0-11ef-addd-5254004d4100.18f0ca99183","object":"email"} [2024-04-23 21:18:35] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"marksho777@gmail.com","name":"Mark Sho"}}],"subject":"Password Reset Verification Code - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Password Reset OTP<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Password Reset OTP<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your password reset verification code is: <strong>54997<\\/strong><\\/p>\\n <p>Please use this code to reset your password.<\\/p>\\n <p>If you did not request this password reset or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-23 21:18:36] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.0bec4050-01b7-11ef-a07a-5254000b1a0e.18f0cd328d5","object":"email"} [2024-04-23 21:19:09] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"marksho777@gmail.com","name":"Mark Sho"}}],"subject":"Password Reset Successful - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Password Reset Successful - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Password Reset Successful<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Mark Sho,<\\/p>\\n <p>Your password has been successfully reset for your Coins for College account.<\\/p>\\n <p>If you did not initiate this password reset or have any concerns, please contact our support team immediately.<\\/p>\\n <p>Thank you for choosing Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-23 21:19:09] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.1fa00b40-01b7-11ef-b0f3-52540064429e.18f0cd3a9f4","object":"email"} [2024-04-23 21:22:11] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"marksho777@gmail.com","name":"Mark Sho"}}],"subject":"Password Reset Verification Code - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Password Reset OTP<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Password Reset OTP<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your password reset verification code is: <strong>80488<\\/strong><\\/p>\\n <p>Please use this code to reset your password.<\\/p>\\n <p>If you did not request this password reset or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-23 21:22:11] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.8c428f70-01b7-11ef-99cc-525400f92481.18f0cd671e7","object":"email"} [2024-04-23 21:22:46] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"marksho777@gmail.com","name":"Mark Sho"}}],"subject":"Password Reset Successful - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Password Reset Successful - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Password Reset Successful<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Mark Sho,<\\/p>\\n <p>Your password has been successfully reset for your Coins for College account.<\\/p>\\n <p>If you did not initiate this password reset or have any concerns, please contact our support team immediately.<\\/p>\\n <p>Thank you for choosing Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-23 21:22:47] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.a182c6c0-01b7-11ef-bfc4-525400d6cd4f.18f0cd6fd2c","object":"email"} [2024-04-23 21:34:25] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"russelldiamond@aol.com","name":"Russell Steele"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Russell Steele,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">37134<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-23 21:34:25] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.41b51a20-01b9-11ef-addd-5254004d4100.18f0ce1a4c2","object":"email"} [2024-04-23 21:35:13] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"russelldiamond@aol.com","name":"Russell Steele"}}],"subject":"Resend Verification Code - Coins for College","htmlbody":"<!-- otp_email_template.blade.php -->\\n<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>OTP Email<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>OTP Verification<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your verification code is: <strong>97841<\\/strong><\\/p>\\n <p>Please use this code to complete the verification process.<\\/p>\\n <p>If you did not request this verification or have any concerns, please contact our support team immediately.<\\/p>\\n <p>Thank you for choosing Coins For College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins For College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-23 21:35:14] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.5eca0490-01b9-11ef-bc9c-525400ae9113.18f0ce26359","object":"email"} [2024-04-23 21:37:25] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"toddshafter@comcast.net","name":"Todd Shafter"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Todd Shafter,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">75525<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-23 21:37:26] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.ad55beb0-01b9-11ef-bc9c-525400ae9113.18f0ce4661b","object":"email"} [2024-04-23 21:38:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 21:38:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 21:38:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-23 21:38:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 21:38:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-26' and `tasks`.`due_by` > '2024-04-23' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-23 21:38:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-23' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-23 21:38:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 21:38:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 21:38:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-23 21:38:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 22:37:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 22:37:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 22:37:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 22:37:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 22:37:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 22:37:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 22:37:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-23 22:37:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 22:37:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-23 22:37:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 22:37:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-23 22:37:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-23 22:38:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-23 22:38:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 22:38:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-23 22:38:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 22:38:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 22:38:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 22:38:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 22:38:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 22:38:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 22:38:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 23:16:38] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"tom@apmortgages.net","name":"Tom Fernandez"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Tom Fernandez,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">44601<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-23 23:16:38] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.8958e9c0-01c7-11ef-a07a-5254000b1a0e.18f0d3f3a5c","object":"email"} [2024-04-23 23:17:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 23:17:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 23:17:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 23:17:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-23 23:17:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-22' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-23 23:17:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 00:49:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 00:49:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 00:49:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 00:49:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 00:49:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 00:49:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 01:36:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 01:36:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 01:36:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 01:36:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 01:36:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 01:36:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 02:40:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 02:40:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 02:40:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 02:40:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 02:40:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 02:40:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 02:40:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 02:40:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 02:40:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-24 02:40:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 02:56:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 02:56:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 02:56:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 02:56:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 02:56:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 02:56:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 03:24:09] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"quentaviousdavis23@gmail.com","name":"Quentavious Davis"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Quentavious Davis,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">16880<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-24 03:24:09] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.1d4d3970-01ea-11ef-8b14-525400103106.18f0e21d687","object":"email"} [2024-04-24 03:25:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 03:25:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 03:25:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 03:25:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 03:25:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 03:25:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 03:34:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 03:34:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 03:34:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 03:34:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 03:34:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 03:34:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 03:35:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 03:35:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 03:35:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-24 03:35:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 03:40:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 03:40:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 03:40:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 03:40:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 03:40:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 03:40:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 03:40:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 03:40:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 03:40:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 03:40:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 03:40:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 03:40:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 03:41:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 03:41:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 03:41:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 03:41:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 03:41:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 03:41:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 03:42:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-27' and `tasks`.`due_by` > '2024-04-24' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 03:42:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 03:42:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 03:42:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 03:42:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 03:42:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-24 03:42:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 03:42:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-24 03:42:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 03:42:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-24 03:42:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-24 03:42:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-24 03:42:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-24 03:42:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-24 03:42:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-24 03:42:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-24 03:42:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-24 03:42:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-24 03:42:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-24 03:42:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-24 03:42:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-24 03:42:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-24 03:42:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-24 03:43:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-24 03:43:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 03:43:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 03:43:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-24 03:43:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 03:43:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 03:43:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 03:43:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-24 03:43:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 03:43:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 03:43:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 03:43:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 03:43:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 03:43:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 03:43:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 03:43:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 03:43:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 03:43:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 03:43:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 03:43:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 03:43:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-27' and `tasks`.`due_by` > '2024-04-24' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 03:43:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 03:43:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 03:43:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 03:43:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 03:44:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 04:09:03] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"precillabobo@gmail.com","name":"Precilla Bobo"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Precilla Bobo,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">58750<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-24 04:09:03] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.63189930-01f0-11ef-a07a-5254000b1a0e.18f0e4af243","object":"email"} [2024-04-24 04:10:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 04:10:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 04:10:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 04:10:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 04:10:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 04:10:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 04:11:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-27' and `tasks`.`due_by` > '2024-04-24' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 04:11:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 04:11:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 04:17:45] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"jasso1925@gmail.com","name":"Charlie"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Charlie,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">12536<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-24 04:17:45] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.99f19ff0-01f1-11ef-a17c-525400fa05f6.18f0e52e76f","object":"email"} [2024-04-24 04:18:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 04:18:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 04:18:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-24 04:18:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 05:00:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 05:00:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 05:00:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 05:00:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 05:00:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 05:00:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 05:04:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 05:04:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 05:04:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 05:04:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 05:04:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 05:04:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 05:15:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 05:15:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 05:15:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 05:15:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 05:15:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 05:15:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 05:16:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 05:16:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 05:16:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 05:16:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 05:16:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 05:16:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 05:16:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-24 05:16:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 05:16:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-24 05:16:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 05:16:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-24 05:16:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 05:16:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-24 05:16:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 05:16:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 05:16:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 05:16:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 05:16:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 05:16:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 05:16:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 05:34:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 05:34:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 05:34:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 05:34:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 05:34:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 05:34:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 05:36:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-27' and `tasks`.`due_by` > '2024-04-24' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 05:36:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 05:36:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 06:15:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 06:15:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 06:15:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 06:15:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 06:15:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 06:15:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 07:05:01] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-04-24 07:05:02] local.ERROR: Error while clonning tasks and associated rewards, rolling back the transaction. Message: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'created_by' in 'field list' (SQL: insert into `task_assigned` (`user_id`, `task_id`, `group_id`, `status`, `task_details_for_approval`, `deleted_at`, `created_by`, `updated_at`, `created_at`) values (220, 270, 76, PENDING, ?, ?, ?, 2024-04-24 07:05:02, 2024-04-24 07:05:02)) [2024-04-24 07:05:02] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(546): Illuminate\Database\Connection->run() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(498): Illuminate\Database\Connection->statement() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3322): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1869): Illuminate\Database\Query\Builder->insertGetId() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1330): Illuminate\Database\Eloquent\Builder->__call() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1295): Illuminate\Database\Eloquent\Model->insertAndSetId() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert() #9 /home/o5t6x7pgljbm/public_html/admin/app/Models/TaskAssigned.php(82): Illuminate\Database\Eloquent\Model->save() #10 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(466): App\Models\TaskAssigned->cloneTaskAssignee() #11 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(410): App\V2\Services\TaskService->cloneTaskAndReward() #12 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2CronController.php(37): App\V2\Services\TaskService->cloneTasksAndRewards() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2CronController->create_repeate_tasks() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #44 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #45 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #46 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #47 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #48 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #49 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #50 {main} [2024-04-24 09:33:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 09:33:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 09:33:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 09:33:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 09:33:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 09:33:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 09:49:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-24 09:49:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 09:49:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 09:49:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 09:49:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 09:49:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 09:49:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 09:49:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 09:49:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 09:49:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-24 09:49:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 09:49:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 09:49:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 09:49:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 09:49:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 09:49:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 09:49:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 09:50:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-24 09:50:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-24 09:50:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 09:50:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 09:50:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 09:50:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 09:50:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 09:50:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 09:50:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 09:50:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 09:50:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-24 09:50:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 09:50:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 09:50:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 09:50:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 09:50:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 09:50:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 09:50:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 09:50:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-27' and `tasks`.`due_by` > '2024-04-24' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 09:50:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 09:50:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 09:51:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 09:51:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 09:51:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-27' and `tasks`.`due_by` > '2024-04-24' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 09:51:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 09:51:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 09:51:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 09:51:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-27' and `tasks`.`due_by` > '2024-04-24' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 09:51:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 09:51:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 09:51:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 09:51:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 09:51:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 09:51:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 09:51:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 09:51:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 09:51:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-24 09:51:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-24 09:51:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-27' and `tasks`.`due_by` > '2024-04-24' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 09:51:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 09:51:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 09:51:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 09:52:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 09:52:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-24 09:52:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 09:52:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-27' and `tasks`.`due_by` > '2024-04-24' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 09:52:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 09:52:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 09:52:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 09:53:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 11:20:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 11:20:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 11:20:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 11:20:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 11:20:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 11:20:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 11:20:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 11:20:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 11:20:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 11:20:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 11:20:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 11:20:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 12:41:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 12:41:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 12:41:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 12:41:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 12:41:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 12:41:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 13:32:06] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"tony@compelradio.com","name":"Tony Silva"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Tony Silva,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">02062<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-24 13:32:07] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.0baeb950-023f-11ef-9cc0-525400d4bb1c.18f104e7165","object":"email"} [2024-04-24 14:26:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 14:26:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 14:26:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 14:26:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 14:26:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 14:26:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 14:26:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 14:26:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 14:26:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 14:26:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 14:26:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 14:26:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 14:27:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 14:27:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 14:27:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 14:27:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 14:27:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 14:27:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 14:29:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 14:29:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 14:29:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 14:29:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 14:29:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 14:29:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 16:44:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 16:44:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 16:44:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 16:44:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 16:44:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 16:44:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 16:44:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 16:44:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 16:44:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 16:44:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 16:44:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 16:44:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 16:45:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 16:45:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 16:45:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 16:45:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 16:45:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 16:45:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 16:45:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 16:45:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 16:45:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 16:45:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 16:45:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 16:45:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 16:45:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-27' and `tasks`.`due_by` > '2024-04-24' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 16:45:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 16:45:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 16:45:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 16:45:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 16:45:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 16:45:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 16:45:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 16:45:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 16:45:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 16:45:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 16:45:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 16:45:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 16:45:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 16:45:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 17:03:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 17:03:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 17:03:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 17:03:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 17:03:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 17:03:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 17:47:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 17:47:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 17:47:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 17:47:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 17:47:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 17:47:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 18:32:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 18:32:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 18:32:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 18:32:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 18:32:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 18:32:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 18:32:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 18:32:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 18:32:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 18:32:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 18:32:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 18:32:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 18:36:52] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"mrjeremiwashington@gmail.com","name":"jeremi Washington"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello jeremi Washington,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">71146<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-24 18:36:52] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.9e948590-0269-11ef-8823-525400f92481.18f11657469","object":"email"} [2024-04-24 18:37:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 18:37:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 18:37:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 18:37:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 18:37:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 18:37:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 18:38:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 18:38:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 18:38:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 18:38:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 18:38:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 18:38:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 18:38:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 18:38:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 18:38:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 18:38:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 18:38:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 18:38:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 18:40:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 18:40:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 18:40:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 18:40:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 18:40:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 18:40:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 19:37:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 19:37:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 19:37:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 19:37:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 19:37:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 19:37:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 19:37:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 19:37:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 19:37:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 19:37:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 19:37:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 19:37:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 20:00:24] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"cam62202@yahoo.com","name":"Armando Moreno"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Armando Moreno,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">91697<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-24 20:00:25] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.4a3bb1b0-0275-11ef-8823-525400f92481.18f11b1f04b","object":"email"} [2024-04-24 20:02:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 20:02:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 20:02:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 20:02:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 20:02:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 20:02:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 20:03:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 20:03:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 20:03:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 20:03:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 20:03:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 20:03:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 20:23:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 20:23:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 20:23:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 20:23:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 20:23:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 20:23:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 20:23:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-24 20:23:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 20:24:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 20:24:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 20:24:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 20:24:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 20:24:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 20:24:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 20:24:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-24 20:24:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 20:24:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-24 20:24:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 20:24:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 20:24:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 20:24:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 20:24:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 20:24:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 20:24:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 20:24:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 20:24:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 20:24:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 20:24:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 20:24:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 20:24:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 21:23:12] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"lildc25@gmail.com","name":"Carlton Wilkinson"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Carlton Wilkinson,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">47077<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-24 21:23:13] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.db756cb0-0280-11ef-9d16-525400103106.18f11fdbefb","object":"email"} [2024-04-24 21:24:34] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"lildc25@gmail.com","name":"Carlton Wilkinson"}}],"subject":"Resend Verification Code - Coins for College","htmlbody":"<!-- otp_email_template.blade.php -->\\n<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>OTP Email<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>OTP Verification<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your verification code is: <strong>29238<\\/strong><\\/p>\\n <p>Please use this code to complete the verification process.<\\/p>\\n <p>If you did not request this verification or have any concerns, please contact our support team immediately.<\\/p>\\n <p>Thank you for choosing Coins For College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins For College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-24 21:24:34] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.0be0bfd0-0281-11ef-a6fc-525400ae9113.18f11fefc4d","object":"email"} [2024-04-24 21:26:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 21:26:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 21:26:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 21:26:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 21:26:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 21:26:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 21:27:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 21:27:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 21:27:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 21:27:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 21:27:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 21:27:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 21:57:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 21:57:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 21:57:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 21:57:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 21:57:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 21:57:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 22:48:39] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"successwithshaun@gmail.com","name":"Shaun Boynton"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Shaun Boynton,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">10065<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-24 22:48:39] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.cae99f40-028c-11ef-9cc0-525400d4bb1c.18f124bf734","object":"email"} [2024-04-24 22:50:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 22:50:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 22:50:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-24 22:50:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 22:55:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 22:55:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 22:55:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-24 22:55:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 22:55:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 22:55:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 22:55:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-24 22:55:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 22:55:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-27' and `tasks`.`due_by` > '2024-04-24' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-24 22:55:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-24' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-24 23:37:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 23:37:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 23:37:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 23:37:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 23:37:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 23:37:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 23:37:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 23:37:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 23:37:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 23:37:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 23:37:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-23' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-24 23:37:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-24 23:37:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-27' and `tasks`.`due_by` > '2024-04-24' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 23:37:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-24 23:37:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 00:20:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 00:20:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 00:20:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 00:20:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 00:20:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 00:20:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 00:20:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 00:20:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 00:20:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 00:20:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 00:20:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 00:20:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 00:20:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-25 00:20:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-25 00:20:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-28' and `tasks`.`due_by` > '2024-04-25' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 00:20:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 00:20:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 00:21:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 00:21:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-28' and `tasks`.`due_by` > '2024-04-25' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 00:21:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 00:21:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 00:21:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 00:21:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 00:21:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 00:21:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 00:21:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 00:21:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 00:21:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 00:21:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 00:21:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 00:21:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 00:21:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 00:21:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 00:47:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 00:47:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 00:47:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 00:47:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 00:47:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 00:47:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 01:12:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 01:12:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 01:12:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 01:12:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 01:12:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 01:12:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 01:27:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 01:27:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 01:27:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 01:27:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 01:27:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 01:27:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 01:28:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-28' and `tasks`.`due_by` > '2024-04-25' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 01:28:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 01:28:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 02:28:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-25 02:28:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 02:28:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-25 02:28:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 02:28:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-25 02:28:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-25 02:28:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-25 02:28:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 02:28:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-25 02:28:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-25 02:28:35] local.DEBUG: Current Balance: 0 [2024-04-25 02:28:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 02:28:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 02:28:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-25 02:28:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 02:30:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-25 02:30:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-25 02:30:02] local.DEBUG: Current Balance: 0 [2024-04-25 02:30:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 02:30:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 02:30:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-25 02:30:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 02:30:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-25 02:30:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-25 02:30:25] local.DEBUG: Current Balance: 0 [2024-04-25 02:31:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-25 02:31:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 02:31:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-25 02:31:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 02:31:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-25 02:31:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-25 02:31:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-25 02:31:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 03:01:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 03:01:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 03:01:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 03:01:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 03:01:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 03:01:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 03:02:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-28' and `tasks`.`due_by` > '2024-04-25' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 03:02:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 03:02:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 03:14:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 03:14:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 03:14:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 03:14:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 03:14:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 03:14:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 03:14:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 03:14:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 03:14:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 03:14:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 03:14:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 03:14:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 03:37:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 03:37:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 03:37:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 03:37:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 03:37:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 03:37:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 03:41:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 03:41:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 03:41:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-25 03:41:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 03:42:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 03:42:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 03:42:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-25 03:42:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 03:42:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 03:42:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 03:42:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-25 03:42:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 03:42:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 03:42:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 03:42:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-25 03:42:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 03:42:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 03:42:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 03:42:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-25 03:42:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 03:42:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 03:42:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 03:42:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-25 04:35:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 04:35:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 04:35:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 04:35:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 04:35:50] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 04:35:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 04:36:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-25 04:36:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 04:36:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 04:36:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 04:36:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 04:36:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 04:36:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 04:36:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-25 04:36:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 04:36:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 04:36:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 04:36:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 04:36:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 04:36:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 04:36:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-25 04:36:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 04:36:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 04:36:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 04:36:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 04:36:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 04:36:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 04:36:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-25 04:36:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 04:36:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 04:36:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 04:36:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 04:36:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 04:36:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 04:36:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-25 04:36:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 04:36:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 04:36:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 04:36:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 04:36:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 04:36:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 04:37:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-25 04:37:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 04:37:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-25 04:37:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-25 04:38:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 04:38:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 04:38:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 04:38:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 04:38:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 04:38:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 05:05:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 05:05:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 05:05:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 05:05:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 05:05:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 05:05:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 05:05:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-28' and `tasks`.`due_by` > '2024-04-25' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 05:05:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 05:05:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 05:06:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 05:06:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 05:06:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 05:06:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 05:06:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 05:06:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 05:06:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 05:06:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 05:06:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 05:06:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 05:06:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 05:06:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 05:06:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 05:06:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 05:06:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 05:06:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 05:06:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 05:06:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 05:07:35] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"udukings904@gmail.com","name":"otoikhila udukhagele kingsley"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello otoikhila udukhagele kingsley,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">84575<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-25 05:07:36] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.bafb9bd1-02c1-11ef-8b54-52540064429e.18f13a6e604","object":"email"} [2024-04-25 05:10:07] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"udukings904@gmail.com","name":"otoikhila udukhagele kingsley"}}],"subject":"Password Reset Verification Code - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Password Reset OTP<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Password Reset OTP<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your password reset verification code is: <strong>16118<\\/strong><\\/p>\\n <p>Please use this code to reset your password.<\\/p>\\n <p>If you did not request this password reset or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-25 05:10:08] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.15967e70-02c2-11ef-8823-525400f92481.18f13a937d7","object":"email"} [2024-04-25 05:11:11] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"udukings904@gmail.com","name":"otoikhila udukhagele kingsley"}}],"subject":"Password Reset Successful - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Password Reset Successful - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Password Reset Successful<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello otoikhila udukhagele kingsley,<\\/p>\\n <p>Your password has been successfully reset for your Coins for College account.<\\/p>\\n <p>If you did not initiate this password reset or have any concerns, please contact our support team immediately.<\\/p>\\n <p>Thank you for choosing Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-25 05:11:11] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.3b7bba10-02c2-11ef-a77f-525400d6cd4f.18f13aa3031","object":"email"} [2024-04-25 05:11:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 05:11:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 05:11:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 05:11:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 05:11:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 05:11:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 05:12:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 05:12:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 05:12:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 05:12:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 05:12:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 05:12:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 05:12:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-25 05:12:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-25 05:13:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 05:13:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 05:13:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 05:13:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 05:13:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 05:13:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 05:13:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-25 05:13:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-25 05:13:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-25 05:13:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-25 05:20:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-25 05:20:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-25 05:20:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-28' and `tasks`.`due_by` > '2024-04-25' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 05:20:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 05:20:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 05:21:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 05:21:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 05:21:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-28' and `tasks`.`due_by` > '2024-04-25' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 05:21:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 05:21:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 05:21:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 05:21:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 05:21:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 05:21:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 05:21:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 05:21:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 05:21:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-25 05:21:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 05:21:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 05:21:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 05:21:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 05:21:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 05:21:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 05:48:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 05:48:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 05:48:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 05:48:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 05:48:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 05:48:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 05:59:13] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"fmfegurgur@gmail.com","name":"Francisco Fegurgur"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Francisco Fegurgur,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">84225<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-25 05:59:14] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.f1816ac0-02c8-11ef-a6fc-525400ae9113.18f13d62b6c","object":"email"} [2024-04-25 05:59:46] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kleensedream@gmail.com","name":"David Edobor"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello David Edobor,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">33881<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-25 05:59:46] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.04bbbff0-02c9-11ef-8823-525400f92481.18f13d6a96f","object":"email"} [2024-04-25 05:59:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 05:59:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 05:59:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 05:59:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 05:59:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 05:59:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 06:00:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-28' and `tasks`.`due_by` > '2024-04-25' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 06:00:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 06:00:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 06:00:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 06:00:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 06:00:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 06:00:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 06:00:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 06:00:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 06:00:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 06:00:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 06:00:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 06:00:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 06:00:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 06:00:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 06:01:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 06:01:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 06:01:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 06:01:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 06:01:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 06:01:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 06:01:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 06:01:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 06:01:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-25 06:01:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 06:01:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-25 06:01:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 06:01:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 06:01:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-25 06:01:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 06:01:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 06:01:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 06:01:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 06:01:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 06:01:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 06:01:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 06:03:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 06:03:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 06:03:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 06:03:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 06:03:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 06:03:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 06:06:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-28' and `tasks`.`due_by` > '2024-04-25' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 06:06:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 06:06:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 06:07:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 06:07:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 06:07:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 06:07:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 06:07:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 06:07:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 06:55:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 06:55:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 06:55:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 06:55:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 06:55:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 06:55:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-04-25 07:05:02] local.ERROR: Error while clonning tasks and associated rewards, rolling back the transaction. Message: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'created_by' in 'field list' (SQL: insert into `task_assigned` (`user_id`, `task_id`, `group_id`, `status`, `task_details_for_approval`, `deleted_at`, `created_by`, `updated_at`, `created_at`) values (220, 271, 76, PENDING, ?, ?, ?, 2024-04-25 07:05:02, 2024-04-25 07:05:02)) [2024-04-25 07:05:02] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(546): Illuminate\Database\Connection->run() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(498): Illuminate\Database\Connection->statement() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3322): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1869): Illuminate\Database\Query\Builder->insertGetId() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1330): Illuminate\Database\Eloquent\Builder->__call() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1295): Illuminate\Database\Eloquent\Model->insertAndSetId() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert() #9 /home/o5t6x7pgljbm/public_html/admin/app/Models/TaskAssigned.php(82): Illuminate\Database\Eloquent\Model->save() #10 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(466): App\Models\TaskAssigned->cloneTaskAssignee() #11 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(410): App\V2\Services\TaskService->cloneTaskAndReward() #12 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2CronController.php(37): App\V2\Services\TaskService->cloneTasksAndRewards() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2CronController->create_repeate_tasks() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #44 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #45 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #46 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #47 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #48 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #49 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #50 {main} [2024-04-25 10:40:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 10:40:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 10:40:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 10:40:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 10:40:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 10:40:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 10:40:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 10:40:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 10:40:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 10:40:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 10:40:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 10:40:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 12:40:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 12:40:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 12:40:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 12:40:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 12:40:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 12:40:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 12:49:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 12:49:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 12:49:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 12:49:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 12:49:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 12:49:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 12:49:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 12:49:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 12:49:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 12:49:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 12:49:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 12:49:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 13:39:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 13:39:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 13:39:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 13:39:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 13:39:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 13:39:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 13:39:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-25 13:39:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 13:39:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-25 13:39:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 13:39:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 13:39:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 13:39:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 13:39:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 13:39:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 13:39:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 13:53:05] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"edgrapple@gmail.com","name":"Edward Llamas"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Edward Llamas,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">98407<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-25 13:53:05] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.24319ed0-030b-11ef-8397-5254000b1a0e.18f1588013d","object":"email"} [2024-04-25 13:57:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 13:57:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 13:57:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 13:57:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 13:57:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 13:57:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 13:58:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 13:58:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 13:58:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 13:58:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 13:58:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 13:58:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 13:58:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-28' and `tasks`.`due_by` > '2024-04-25' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 13:58:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 13:58:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 13:59:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 13:59:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 13:59:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 13:59:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 13:59:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 13:59:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 13:59:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 13:59:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 15:03:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 15:03:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 15:03:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 15:03:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 15:03:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 15:03:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 15:03:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-28' and `tasks`.`due_by` > '2024-04-25' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 15:03:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 15:03:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 15:03:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 15:03:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 15:03:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 15:03:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 15:03:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 15:03:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 16:16:39] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"skitige@comcast.net","name":"John Bouwman"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello John Bouwman,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">67521<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-25 16:16:40] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.32a55420-031f-11ef-a77f-525400d6cd4f.18f160b7262","object":"email"} [2024-04-25 16:18:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 16:18:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 16:18:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 16:18:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 16:18:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 16:18:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 16:33:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 16:33:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 16:33:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 16:33:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 16:33:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 16:33:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 16:33:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-25 16:33:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-25 16:33:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 16:33:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 16:33:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 16:33:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 16:33:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 16:33:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 17:01:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 17:01:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 17:01:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-25 17:01:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 17:02:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 17:02:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 17:02:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 17:02:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 17:02:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 17:02:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 18:05:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 18:05:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 18:05:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 18:05:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 18:05:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 18:05:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 18:06:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-28' and `tasks`.`due_by` > '2024-04-25' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 18:06:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 18:06:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 20:49:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 20:49:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 20:49:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 20:49:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 20:49:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 20:49:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 21:20:17] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"dylinbaruso@yahoo.com","name":"Dylin Baruso"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Dylin Baruso,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">66541<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-25 21:20:18] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.9d7c26f0-0349-11ef-8b54-52540064429e.18f17216edf","object":"email"} [2024-04-25 21:21:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 21:21:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 21:21:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 21:21:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 21:21:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 21:21:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 21:58:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 21:58:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 21:58:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 21:58:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 21:58:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 21:58:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 21:58:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 21:58:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 21:58:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 21:58:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 21:58:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 21:58:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 21:58:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 21:58:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 21:58:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 21:58:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 21:58:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 21:58:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 23:18:56] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"chrissnapp69@gmail.com","name":"Christopher W Snapp"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Christopher W Snapp,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">99333<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-25 23:18:57] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.30cfa7f0-035a-11ef-9d16-525400103106.18f178e0fef","object":"email"} [2024-04-25 23:19:46] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"nevarez.tanya@yahoo.com","name":"Rumalda Nevarez"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Rumalda Nevarez,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">87591<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-25 23:19:46] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.4e4d8d60-035a-11ef-9d16-525400103106.18f178ed136","object":"email"} [2024-04-25 23:20:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 23:20:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 23:20:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-25 23:20:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 23:20:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 23:20:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 23:20:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-25 23:20:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 23:20:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-28' and `tasks`.`due_by` > '2024-04-25' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-25 23:20:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-25' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-25 23:20:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 23:20:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 23:20:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-25 23:20:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 23:21:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 23:21:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 23:21:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 23:21:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 23:21:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 23:21:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 23:22:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 23:22:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 23:22:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 23:22:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 23:22:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-24' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-25 23:22:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-25 23:24:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-28' and `tasks`.`due_by` > '2024-04-25' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 23:24:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-25 23:24:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-26 01:10:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 01:10:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 01:10:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 01:10:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 01:10:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 01:10:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 01:10:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 01:10:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 01:10:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 01:10:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 01:10:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 01:10:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 01:46:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 01:46:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 01:46:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 01:46:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 01:46:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 01:46:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 01:46:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-29' and `tasks`.`due_by` > '2024-04-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-26 01:46:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-26 01:46:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-26 01:46:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 01:46:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 01:46:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 01:46:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 01:46:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 01:46:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 02:06:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 02:06:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 02:06:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 02:06:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 02:06:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 02:06:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 02:06:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 02:06:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 02:06:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 02:06:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 02:06:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 02:06:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 02:07:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 02:07:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 02:07:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 02:07:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 02:07:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 02:07:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 02:27:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 02:27:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 02:27:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 02:27:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 02:27:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 02:27:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 02:56:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 02:56:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 02:56:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 02:56:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 02:56:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 02:56:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 02:56:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 02:56:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 02:56:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 02:56:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 02:56:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 02:56:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 02:57:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-26 02:57:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 02:57:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-26 02:57:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-29' and `tasks`.`due_by` > '2024-04-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-26 02:57:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-26 02:57:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-26 03:40:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 03:40:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 03:40:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 03:40:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 03:40:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 03:40:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 04:14:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 04:14:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 04:14:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 04:14:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 04:14:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 04:14:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 04:15:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-26 04:15:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-26 04:15:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 04:15:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 04:15:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 04:15:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 04:15:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 04:15:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 07:05:03] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-04-26 07:05:03] local.ERROR: Error while clonning tasks and associated rewards, rolling back the transaction. Message: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'created_by' in 'field list' (SQL: insert into `task_assigned` (`user_id`, `task_id`, `group_id`, `status`, `task_details_for_approval`, `deleted_at`, `created_by`, `updated_at`, `created_at`) values (220, 272, 76, PENDING, ?, ?, ?, 2024-04-26 07:05:03, 2024-04-26 07:05:03)) [2024-04-26 07:05:03] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(546): Illuminate\Database\Connection->run() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(498): Illuminate\Database\Connection->statement() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3322): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1869): Illuminate\Database\Query\Builder->insertGetId() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1330): Illuminate\Database\Eloquent\Builder->__call() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1295): Illuminate\Database\Eloquent\Model->insertAndSetId() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert() #9 /home/o5t6x7pgljbm/public_html/admin/app/Models/TaskAssigned.php(82): Illuminate\Database\Eloquent\Model->save() #10 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(466): App\Models\TaskAssigned->cloneTaskAssignee() #11 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(410): App\V2\Services\TaskService->cloneTaskAndReward() #12 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2CronController.php(37): App\V2\Services\TaskService->cloneTasksAndRewards() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2CronController->create_repeate_tasks() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #44 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #45 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #46 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #47 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #48 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #49 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #50 {main} [2024-04-26 08:57:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 08:57:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 08:57:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 08:57:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 08:57:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 08:57:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 08:57:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 08:57:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 08:57:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 08:57:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 08:57:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 08:57:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 08:57:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 08:57:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 08:57:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 08:57:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 08:57:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 08:57:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 08:58:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-29' and `tasks`.`due_by` > '2024-04-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-26 08:58:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-26 08:58:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-26 15:35:05] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"rubhard.whyte@gmail.com","name":"Rubhard Whyte"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Rubhard Whyte,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">36028<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-26 15:35:05] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.8e63eba0-03e2-11ef-8b54-52540064429e.18f1b0bbf5a","object":"email"} [2024-04-26 15:37:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 15:37:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 15:37:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 15:37:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 15:37:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 15:37:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 15:37:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-29' and `tasks`.`due_by` > '2024-04-26' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-26 15:37:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-26 15:37:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-26 17:01:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 17:01:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 17:01:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 17:01:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 17:01:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 17:01:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 19:29:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 19:29:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 19:29:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 19:29:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 19:29:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 19:29:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 19:29:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 19:29:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 19:29:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 19:29:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 19:29:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 19:29:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 20:08:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 20:08:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 20:08:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 20:08:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 20:08:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 20:08:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 20:16:18] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"brian@lovelife.org","name":"Brian Ottinger"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Brian Ottinger,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">80022<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-26 20:16:19] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.d7a5f890-0409-11ef-9d16-525400103106.18f1c0d3699","object":"email"} [2024-04-26 20:16:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 20:16:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 20:16:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 20:16:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-26 20:16:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-25' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-26 20:16:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 01:57:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 01:57:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 01:57:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 01:57:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 01:57:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 01:57:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 02:33:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-27 02:33:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-27 02:34:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 02:34:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 02:34:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 02:34:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 02:34:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 02:34:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 02:43:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 02:43:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 02:43:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 02:43:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 02:43:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 02:43:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 03:47:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 03:47:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 03:47:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 03:47:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 03:47:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 03:47:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 03:47:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 03:47:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 03:47:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 03:47:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 03:47:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 03:47:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 03:48:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 03:48:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 03:48:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 03:48:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 03:48:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 03:48:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 03:48:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-27 03:48:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-27 03:48:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-27 03:48:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-27 03:48:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-27 03:48:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-27 03:48:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-27 03:48:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-27 03:48:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-27 03:49:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 03:49:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 03:49:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 03:49:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 03:49:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 03:49:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 03:49:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 03:49:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 03:49:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-27 03:49:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 03:49:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 03:49:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 03:49:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 03:49:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 03:49:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 03:49:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-04-27 07:05:02] local.ERROR: Error while clonning tasks and associated rewards, rolling back the transaction. Message: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'created_by' in 'field list' (SQL: insert into `task_assigned` (`user_id`, `task_id`, `group_id`, `status`, `task_details_for_approval`, `deleted_at`, `created_by`, `updated_at`, `created_at`) values (220, 273, 76, PENDING, ?, ?, ?, 2024-04-27 07:05:02, 2024-04-27 07:05:02)) [2024-04-27 07:05:02] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(546): Illuminate\Database\Connection->run() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(498): Illuminate\Database\Connection->statement() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3322): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1869): Illuminate\Database\Query\Builder->insertGetId() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1330): Illuminate\Database\Eloquent\Builder->__call() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1295): Illuminate\Database\Eloquent\Model->insertAndSetId() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert() #9 /home/o5t6x7pgljbm/public_html/admin/app/Models/TaskAssigned.php(82): Illuminate\Database\Eloquent\Model->save() #10 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(466): App\Models\TaskAssigned->cloneTaskAssignee() #11 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(410): App\V2\Services\TaskService->cloneTaskAndReward() #12 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2CronController.php(37): App\V2\Services\TaskService->cloneTasksAndRewards() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2CronController->create_repeate_tasks() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #44 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #45 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #46 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #47 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #48 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #49 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #50 {main} [2024-04-27 08:09:53] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"realbuzines@gmail.com","name":"Akaninyene Essien"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Akaninyene Essien,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">10565<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-27 08:09:53] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.874706a0-046d-11ef-8b54-52540064429e.18f1e9a840a","object":"email"} [2024-04-27 08:10:54] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"realbuzines@gmail.com","name":"Akaninyene Essien"}}],"subject":"Password Reset Verification Code - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Password Reset OTP<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Password Reset OTP<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your password reset verification code is: <strong>59566<\\/strong><\\/p>\\n <p>Please use this code to reset your password.<\\/p>\\n <p>If you did not request this password reset or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-27 08:10:55] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.abc25200-046d-11ef-98fd-5254004d4100.18f1e9b7320","object":"email"} [2024-04-27 08:14:15] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"realbuzines@gmail.com","name":"Akaninyene Essien"}}],"subject":"Password Reset Verification Code - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Password Reset OTP<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Password Reset OTP<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your password reset verification code is: <strong>00473<\\/strong><\\/p>\\n <p>Please use this code to reset your password.<\\/p>\\n <p>If you did not request this password reset or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-27 08:14:15] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.23111350-046e-11ef-a6fc-525400ae9113.18f1e9e8105","object":"email"} [2024-04-27 08:15:13] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"realbuzines@gmail.com","name":"Akaninyene Essien"}}],"subject":"Password Reset Successful - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Password Reset Successful - Coins for College<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Password Reset Successful<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Akaninyene Essien,<\\/p>\\n <p>Your password has been successfully reset for your Coins for College account.<\\/p>\\n <p>If you did not initiate this password reset or have any concerns, please contact our support team immediately.<\\/p>\\n <p>Thank you for choosing Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #4caf50; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-27 08:15:14] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.462617f0-046e-11ef-9d16-525400103106.18f1e9f66ef","object":"email"} [2024-04-27 08:16:19] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"realbuzines@gmail.com","name":"Akaninyene Essien"}}],"subject":"Password Reset Verification Code - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Password Reset OTP<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Password Reset OTP<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your password reset verification code is: <strong>49316<\\/strong><\\/p>\\n <p>Please use this code to reset your password.<\\/p>\\n <p>If you did not request this password reset or have any concerns, please ignore this email.<\\/p>\\n <p>Thank you for using Coins for College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-27 08:16:20] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.6d6a9570-046e-11ef-8823-525400f92481.18f1ea06847","object":"email"} [2024-04-27 08:17:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 08:17:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 08:17:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 08:17:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 08:17:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 08:17:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 08:18:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-30' and `tasks`.`due_by` > '2024-04-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-27 08:18:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-27 08:18:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-27 08:19:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-27 08:19:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-27 08:20:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 08:20:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 08:20:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 08:20:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 08:20:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 08:20:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 08:20:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 08:20:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 08:20:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 08:20:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 08:20:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 08:20:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 12:43:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 12:43:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 12:43:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 12:43:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 12:43:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 12:43:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 12:43:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 12:43:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 12:43:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 12:43:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 12:43:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 12:43:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 15:26:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 15:26:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 15:26:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 15:26:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 15:26:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 15:26:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 17:34:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 17:34:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 17:34:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 17:34:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 17:34:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 17:34:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:41:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-27 19:41:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:41:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-27 19:41:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:41:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-27 19:41:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-27 19:41:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-27 19:41:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:41:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-27 19:41:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:41:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-27 19:41:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:41:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-27 19:41:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-27 19:41:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-27 19:41:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:41:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-30' and `tasks`.`due_by` > '2024-04-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-27 19:41:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-27' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-27 19:41:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-30' and `tasks`.`due_by` > '2024-04-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-27 19:41:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-27' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-27 19:41:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-30' and `tasks`.`due_by` > '2024-04-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-27 19:41:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-27' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-27 19:41:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 19:41:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:41:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-27 19:41:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:41:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-30' and `tasks`.`due_by` > '2024-04-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-27 19:41:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-27' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-27 19:41:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-30' and `tasks`.`due_by` > '2024-04-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-27 19:41:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-27' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-27 19:41:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 19:41:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:41:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-27 19:41:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:41:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-30' and `tasks`.`due_by` > '2024-04-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-27 19:41:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-27' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-27 19:41:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 19:41:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:41:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-27 19:41:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:41:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 19:41:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:41:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-27 19:41:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:41:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-30' and `tasks`.`due_by` > '2024-04-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-27 19:41:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-27' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-27 19:41:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-30' and `tasks`.`due_by` > '2024-04-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-27 19:41:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-27' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-27 19:41:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 19:41:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:41:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-27 19:41:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:41:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-27 19:41:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:41:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-27 19:41:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:41:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-27 19:41:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-27 19:41:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-27 19:41:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:41:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 19:41:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:41:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-27 19:41:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:41:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-27 19:41:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:41:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 19:41:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:41:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-27 19:41:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-27 19:41:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:41:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:41:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-27 19:41:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-27 19:41:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-27 19:41:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:42:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 19:42:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:42:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-27 19:42:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:42:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-27 19:42:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:42:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-27 19:42:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:42:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-27 19:42:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-27 19:42:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-27 19:42:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:42:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-27 19:42:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:42:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-27 19:42:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:42:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-27 19:42:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-27 19:42:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-27 19:42:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:42:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-27 19:42:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:42:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-27 19:42:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:42:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-27 19:42:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-27 19:42:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-27 19:42:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:42:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-27 19:42:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:42:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-27 19:42:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:42:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-27 19:42:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-27 19:42:09] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-27 19:42:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:42:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-27 19:42:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:42:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-27 19:42:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:42:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-27 19:42:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-27 19:42:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-27 19:42:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:42:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-27 19:42:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:42:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-27 19:42:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:42:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-27 19:42:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-27 19:42:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-27 19:42:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:44:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-27 19:44:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:44:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-27 19:44:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:44:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-27 19:44:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-27 19:44:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-27 19:44:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:44:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-27 19:44:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:44:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-27 19:44:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 19:44:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-27 19:44:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-27 19:44:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-27 19:44:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:28:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-27 20:28:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:28:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-27 20:28:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:28:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-27 20:28:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-27 20:28:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-27 20:28:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:28:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-27 20:28:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:28:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-27 20:28:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:28:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-27 20:28:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-27 20:28:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-27 20:28:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:29:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-27 20:29:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-27 20:29:05] local.DEBUG: Current Balance: 0 [2024-04-27 20:29:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-27 20:29:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-27 20:29:08] local.DEBUG: Current Balance: 0 [2024-04-27 20:29:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-27 20:29:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:29:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-27 20:29:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:29:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-27 20:29:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-27 20:29:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-27 20:29:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:29:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-27 20:29:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:29:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-27 20:29:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:29:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-27 20:29:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-27 20:29:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-27 20:29:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:29:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-30' and `tasks`.`due_by` > '2024-04-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-27 20:29:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-27' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-27 20:29:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-27 20:29:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:29:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-27 20:29:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:29:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-27 20:29:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-27 20:29:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-27 20:29:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:29:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-30' and `tasks`.`due_by` > '2024-04-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-27 20:29:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-27' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-27 20:29:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-27 20:29:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:29:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-27 20:29:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:29:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-27 20:29:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-27 20:29:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-27 20:29:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:29:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-30' and `tasks`.`due_by` > '2024-04-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-27 20:29:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-27' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-27 20:29:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-04-30' and `tasks`.`due_by` > '2024-04-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-27 20:29:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-27' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-27 20:29:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 20:29:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:29:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-27 20:29:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:29:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 20:29:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:29:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-27 20:29:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:29:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 20:29:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:29:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-27 20:29:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:29:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 20:29:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:29:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-27 20:29:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:29:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-27 20:29:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:29:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-27 20:29:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:29:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-27 20:29:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-27 20:29:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-27 20:29:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:29:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-27 20:29:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:29:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-27 20:29:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:29:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-27 20:29:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-27 20:29:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-27 20:29:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:30:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 20:30:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:30:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-27 20:30:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:30:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 20:30:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:30:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-27 20:30:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:30:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-27 20:30:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:30:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-27 20:30:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:30:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-27 20:30:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-27 20:30:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-27 20:30:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:30:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-27 20:30:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:30:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-27 20:30:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:30:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-27 20:30:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-27 20:30:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-27 20:30:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:30:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 20:30:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:30:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-27 20:30:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:30:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 20:30:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:30:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-27 20:30:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:31:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-27 20:31:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:31:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-27 20:31:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:31:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-27 20:31:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-27 20:31:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-27 20:31:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:31:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-27 20:31:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:31:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-27 20:31:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:31:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-27 20:31:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-27 20:31:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-27 20:31:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:44:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 20:44:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:44:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 20:44:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 20:44:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 20:44:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 21:23:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 21:23:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 21:23:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 21:23:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 21:23:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 21:23:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 21:24:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-30' and `tasks`.`due_by` > '2024-04-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-27 21:24:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-27 21:24:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-27 21:24:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 21:24:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 21:24:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 21:24:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 21:24:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 21:24:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 21:25:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-30' and `tasks`.`due_by` > '2024-04-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-27 21:25:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-27 21:25:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-27 21:25:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 21:25:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 21:25:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 21:25:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 21:25:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 21:25:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 21:27:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 21:27:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 21:27:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 21:27:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 21:27:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 21:27:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 21:27:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-27 21:27:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 21:27:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-27 21:27:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 21:27:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-27 21:27:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 21:27:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-27 21:27:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 21:32:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 21:32:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 21:32:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 21:32:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 21:32:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 21:32:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 21:33:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 21:33:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 21:33:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 21:33:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 21:33:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 21:33:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 21:33:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-27 21:33:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 21:33:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-27 21:33:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 21:33:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-27 21:33:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 21:33:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-27 21:33:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 21:34:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-27 21:34:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-27 21:34:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-27 21:34:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-27 21:35:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 21:35:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 21:35:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 21:35:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 21:35:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-26' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-27 21:35:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-27 21:35:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-04-30' and `tasks`.`due_by` > '2024-04-27' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-27 21:35:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-27 21:35:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-28 02:27:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 02:27:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 02:27:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-28 02:27:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 02:27:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-01' and `tasks`.`due_by` > '2024-04-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-28 02:27:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-28' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-28 02:27:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 02:27:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 02:27:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-28 02:27:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 02:27:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 02:27:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 02:27:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-28 02:27:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 02:28:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-01' and `tasks`.`due_by` > '2024-04-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-28 02:28:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-28' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-28 02:28:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-01' and `tasks`.`due_by` > '2024-04-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-28 02:28:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-28' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-28 02:28:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 02:28:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 02:28:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-28 02:28:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 02:28:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 02:28:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 02:28:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-28 02:28:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 02:28:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-01' and `tasks`.`due_by` > '2024-04-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-28 02:28:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-28' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-28 02:28:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 02:28:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 02:28:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-28 02:28:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 02:28:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-01' and `tasks`.`due_by` > '2024-04-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-28 02:28:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-28' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-28 02:28:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-01' and `tasks`.`due_by` > '2024-04-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-28 02:28:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-28' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-28 02:29:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 02:29:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 02:29:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-28 02:29:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 02:29:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 02:29:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 02:29:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-28 02:29:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 02:29:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 02:29:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 02:29:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-28 02:29:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 02:29:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 02:29:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 02:29:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-28 02:29:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 03:02:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 03:02:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 03:02:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 03:02:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 03:02:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 03:02:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 03:02:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 03:02:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 03:02:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 03:02:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 03:02:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 03:02:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 03:18:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 03:18:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 03:18:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 03:18:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 03:18:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 03:18:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 04:55:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 04:55:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 04:55:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 04:55:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 04:55:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 04:55:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 04:55:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-28 04:55:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 04:55:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 04:55:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 04:55:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 04:55:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 04:55:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 04:55:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-28 04:55:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 04:55:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 04:55:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 04:55:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 04:55:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 04:55:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 06:21:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 06:21:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 06:21:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 06:21:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 06:21:03] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 06:21:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-04-28 07:05:02] local.ERROR: Error while clonning tasks and associated rewards, rolling back the transaction. Message: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'created_by' in 'field list' (SQL: insert into `task_assigned` (`user_id`, `task_id`, `group_id`, `status`, `task_details_for_approval`, `deleted_at`, `created_by`, `updated_at`, `created_at`) values (10, 274, 18, PENDING, ?, ?, ?, 2024-04-28 07:05:02, 2024-04-28 07:05:02)) [2024-04-28 07:05:02] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(546): Illuminate\Database\Connection->run() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(498): Illuminate\Database\Connection->statement() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3322): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1869): Illuminate\Database\Query\Builder->insertGetId() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1330): Illuminate\Database\Eloquent\Builder->__call() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1295): Illuminate\Database\Eloquent\Model->insertAndSetId() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert() #9 /home/o5t6x7pgljbm/public_html/admin/app/Models/TaskAssigned.php(82): Illuminate\Database\Eloquent\Model->save() #10 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(466): App\Models\TaskAssigned->cloneTaskAssignee() #11 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(410): App\V2\Services\TaskService->cloneTaskAndReward() #12 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2CronController.php(37): App\V2\Services\TaskService->cloneTasksAndRewards() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2CronController->create_repeate_tasks() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #44 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #45 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #46 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #47 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #48 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #49 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #50 {main} [2024-04-28 14:59:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 14:59:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 14:59:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 14:59:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 14:59:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 14:59:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 14:59:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 14:59:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 14:59:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 14:59:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 14:59:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 14:59:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 14:59:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 14:59:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 14:59:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 14:59:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 14:59:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 14:59:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 14:59:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-01' and `tasks`.`due_by` > '2024-04-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-28 14:59:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-28 14:59:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-28 16:55:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 16:55:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 16:55:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 16:55:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 16:55:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 16:55:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 17:08:34] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"tinabpp@gmail.com","name":"Katrina Hall"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Katrina Hall,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">80867<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-28 17:08:34] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.f25a77f0-0581-11ef-98fd-5254004d4100.18f25ae0cef","object":"email"} [2024-04-28 17:11:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 17:11:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 17:11:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 17:11:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 17:11:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 17:11:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 17:14:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 17:14:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 17:14:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 17:14:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 17:14:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 17:14:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 17:15:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-28 17:15:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 17:15:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-28 17:15:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-28 17:15:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-28 17:15:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-28 17:15:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-28 17:15:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 17:15:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 17:15:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 17:15:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 17:15:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 17:15:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 17:15:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-28 17:15:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 17:15:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-28 17:15:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 17:15:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 17:15:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 17:15:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 17:15:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 17:15:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 17:15:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-28 17:15:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 17:16:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-28 17:16:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 17:16:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-28 17:16:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 17:16:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-28 17:16:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 17:16:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-28 17:16:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-01' and `tasks`.`due_by` > '2024-04-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-28 17:16:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-28 17:16:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-28 17:58:46] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"kurtrathbun@yahoo.com","name":"Kurt Rathbun"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Kurt Rathbun,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">05373<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-28 17:58:47] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.f5f833f0-0588-11ef-9d16-525400103106.18f25dc04af","object":"email"} [2024-04-28 18:01:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 18:01:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 18:01:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 18:01:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 18:01:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 18:01:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 18:02:17] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-28 18:02:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 18:02:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-28 18:02:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 18:02:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-28 18:02:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 18:02:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-28 18:02:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 18:02:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-28 18:02:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 18:02:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 18:02:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 18:02:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 18:02:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 18:02:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 18:02:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-01' and `tasks`.`due_by` > '2024-04-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-28 18:02:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-28 18:02:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-28 18:03:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-28 18:03:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-28 18:03:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-28 18:03:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-28 18:03:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-28 18:04:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-28 18:04:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-28 18:05:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-28 18:05:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-28 18:05:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-28 18:06:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 18:06:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 18:06:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 18:06:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 18:06:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 18:06:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 18:06:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-28 18:06:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 18:06:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 18:06:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 18:06:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 18:06:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 18:06:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 18:49:34] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"ashley.garnier25@gmail.com","name":"Ashley Garnier"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Ashley Garnier,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">09454<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-28 18:49:35] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.0ea13490-0590-11ef-ae90-525400fa05f6.18f260a8659","object":"email"} [2024-04-28 18:50:09] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"ashley.garnier25@gmail.com","name":"Ashley Garnier"}}],"subject":"Resend Verification Code - Coins for College","htmlbody":"<!-- otp_email_template.blade.php -->\\n<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>OTP Email<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>OTP Verification<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your verification code is: <strong>99398<\\/strong><\\/p>\\n <p>Please use this code to complete the verification process.<\\/p>\\n <p>If you did not request this verification or have any concerns, please contact our support team immediately.<\\/p>\\n <p>Thank you for choosing Coins For College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins For College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-28 18:50:10] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.2392fdc0-0590-11ef-a77f-525400d6cd4f.18f260b0f9c","object":"email"} [2024-04-28 18:51:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 18:51:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 18:51:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 18:51:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 18:51:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 18:51:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 18:51:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-01' and `tasks`.`due_by` > '2024-04-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-28 18:51:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-28 18:51:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-28 18:52:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 18:52:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 18:52:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 18:52:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 18:52:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 18:52:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 18:54:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 18:54:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 18:54:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-28 18:54:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 20:24:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 20:24:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 20:24:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 20:24:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 20:24:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 20:24:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 20:24:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-01' and `tasks`.`due_by` > '2024-04-28' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-28 20:24:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-28 20:24:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-28 20:24:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-28 20:38:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 20:38:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 20:38:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 20:38:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 20:38:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 20:38:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 21:24:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 21:24:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 21:24:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 21:24:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 21:24:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 21:24:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 21:24:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 21:24:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 21:24:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 21:24:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 21:24:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 21:24:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 21:35:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 21:35:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 21:35:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 21:35:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 21:35:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 21:35:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 21:35:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 21:35:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 21:35:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 21:35:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 21:35:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 21:35:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 21:35:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-28 21:35:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 21:35:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 21:35:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 21:35:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 21:35:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 21:35:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 21:36:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 21:36:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 21:36:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 21:36:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-28 21:36:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-27' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-28 21:36:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 04:54:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 04:54:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 04:54:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 04:54:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 04:54:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 04:54:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 05:49:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 05:49:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 05:49:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 05:49:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 05:49:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 05:49:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 05:49:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 05:49:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 05:49:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 05:49:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 05:49:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-29 05:50:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 05:50:42] local.DEBUG: Product Image Details: Array ( [product_id] => 254 [image_name] => 19158723541714369842.png ) [2024-04-29 05:50:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-29 05:50:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 05:50:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 05:50:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 05:50:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 05:50:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 05:50:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 05:50:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-29 05:50:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-29 05:50:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-29 05:50:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-29 05:50:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-29 05:51:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-29 05:51:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-29 05:51:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-29 05:51:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-29 05:51:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-29 05:51:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-29 05:51:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-29 05:51:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-29 05:51:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-29 05:51:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-29 05:51:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-29 05:51:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-29 05:51:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 05:51:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 05:51:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 05:51:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 05:51:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 05:51:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 05:51:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 05:51:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 05:51:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 05:51:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 05:51:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 05:51:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 05:51:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 05:51:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-29 05:51:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-29 05:51:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-29 05:51:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-29 05:51:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-29 05:52:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` where `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-29 05:52:00] local.DEBUG: Product Image Details: Array ( [product_id] => 254 [image_name] => 4678581891714369920.png ) [2024-04-29 05:52:00] local.DEBUG: Product Image Details: Array ( [product_id] => 254 [image_name] => 18306579131714369920.png ) [2024-04-29 05:52:00] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-29 05:52:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-29 05:52:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 05:52:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-29 05:52:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-29 05:52:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 05:52:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 05:52:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 05:52:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 05:52:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 05:52:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 05:52:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 05:52:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 05:52:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 05:52:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 05:52:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-29 05:52:48] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"jerry@gmail.com","name":"Jerry Smith"}}],"subject":"New Task Assigned","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>New Task Assigned<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>New Task Assigned<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Jerry Smith,<\\/p>\\n <p>You have been assigned a new task:<\\/p>\\n <ul>\\n <li><strong>Task Name:<\\/strong> add test test<\\/li>\\n <li><strong>Assigned By:<\\/strong> Sachin<\\/li>\\n <\\/ul>\\n\\n <p>If you have any questions or concerns, please contact us.<\\/p>\\n <p>Thank you for using our task management system.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2024 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-29 05:52:48] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.b583a8e0-05ec-11ef-8823-525400f92481.18f2869ba6e","object":"email"} [2024-04-29 05:52:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 05:52:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-29 05:52:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 05:53:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 05:53:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 05:53:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 05:53:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 05:53:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 05:53:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-29 05:53:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 05:53:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 05:53:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 05:53:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 05:53:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 05:53:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 05:53:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 05:53:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 05:53:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 05:53:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 05:53:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 05:53:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 05:53:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 05:53:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 05:53:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 05:53:38] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 05:53:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 05:53:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 05:53:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 05:53:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 05:53:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 05:53:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 05:53:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 05:53:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 05:53:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 05:53:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 05:53:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 05:53:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 05:53:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 05:53:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 05:53:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 05:53:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 05:53:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 05:54:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-29 05:54:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-29 05:54:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 05:54:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 05:54:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 05:54:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 05:54:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 05:54:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 05:54:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 05:54:14] local.DEBUG: task visible_to: [2024-04-29 05:54:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 05:54:17] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-04-29 07:05:02] local.ERROR: Error while clonning tasks and associated rewards, rolling back the transaction. Message: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'created_by' in 'field list' (SQL: insert into `task_assigned` (`user_id`, `task_id`, `group_id`, `status`, `task_details_for_approval`, `deleted_at`, `created_by`, `updated_at`, `created_at`) values (220, 276, 76, PENDING, ?, ?, ?, 2024-04-29 07:05:02, 2024-04-29 07:05:02)) [2024-04-29 07:05:02] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(546): Illuminate\Database\Connection->run() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(498): Illuminate\Database\Connection->statement() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3322): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1869): Illuminate\Database\Query\Builder->insertGetId() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1330): Illuminate\Database\Eloquent\Builder->__call() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1295): Illuminate\Database\Eloquent\Model->insertAndSetId() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert() #9 /home/o5t6x7pgljbm/public_html/admin/app/Models/TaskAssigned.php(82): Illuminate\Database\Eloquent\Model->save() #10 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(466): App\Models\TaskAssigned->cloneTaskAssignee() #11 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(410): App\V2\Services\TaskService->cloneTaskAndReward() #12 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2CronController.php(37): App\V2\Services\TaskService->cloneTasksAndRewards() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2CronController->create_repeate_tasks() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #44 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #45 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #46 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #47 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #48 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #49 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #50 {main} [2024-04-29 14:50:14] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"wesr32@gmail.com","name":"Wes Walker"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Wes Walker,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">28103<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-29 14:50:14] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.c9952f21-0637-11ef-9d16-525400103106.18f2a55c30a","object":"email"} [2024-04-29 14:53:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 14:53:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 14:53:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 14:53:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 14:53:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 14:53:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 14:54:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 14:54:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 14:54:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 14:54:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 14:55:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 15:00:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 15:00:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 15:00:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 15:00:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 15:00:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 15:00:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 15:13:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 15:13:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 15:13:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 15:13:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:19:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 16:19:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:19:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 16:19:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:19:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 16:19:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:19:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 16:19:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:19:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 16:19:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:19:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-29 16:19:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:19:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 16:19:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:19:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-29 16:19:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:19:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 16:19:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 16:19:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:19:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 16:19:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 16:19:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:19:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 16:19:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 16:19:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 16:19:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 16:19:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 16:19:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:19:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 16:19:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:19:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 16:19:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 16:19:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 16:19:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:19:56] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 16:19:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:19:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 16:19:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 16:19:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 16:19:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 16:20:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 16:20:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 16:20:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:20:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 16:20:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:20:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 16:20:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:20:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:20:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 16:20:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:20:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 16:20:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:20:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 16:20:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:20:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 16:20:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:20:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 16:20:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 16:20:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 16:20:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 16:21:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 16:21:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 16:21:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 16:21:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 16:21:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 16:21:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 16:21:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 16:21:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 16:21:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 16:21:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 16:21:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 16:21:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 16:21:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 16:21:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 16:22:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 16:22:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:22:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 16:22:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:22:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 16:22:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:22:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 16:22:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:24:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 16:24:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:24:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 16:24:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:24:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 16:24:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:24:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:24:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:24:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:25:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:25:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:25:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:25:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 16:25:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:25:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 16:25:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:25:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 16:25:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:26:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:26:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:26:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:26:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:26:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:26:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:26:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:26:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:26:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:26:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:26:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:26:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-29 16:26:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:26:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-29 16:26:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:26:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:26:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:26:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 16:26:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:26:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 16:26:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:26:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 16:26:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:26:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:26:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:26:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:26:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:26:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `task_settings`.`repeate_after_days` > ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 5 [2024-04-29 16:27:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:27:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:27:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:39:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 16:39:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:39:59] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 16:39:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:43:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:43:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:43:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:46:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 16:46:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:46:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 16:46:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:46:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 16:46:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:46:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:46:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:46:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:47:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:47:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:47:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:47:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:47:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:47:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 16:47:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:47:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 16:47:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:47:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 16:47:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 16:48:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 16:48:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:48:10] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 16:48:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:48:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 16:48:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 16:48:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 16:48:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:48:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 16:48:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:48:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 16:48:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 16:49:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 16:49:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:49:05] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 16:49:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:49:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 16:49:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 16:49:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 16:49:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:49:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 16:49:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:49:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-29 16:49:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-29 16:49:16] local.DEBUG: Current Balance: 0 [2024-04-29 16:49:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 16:49:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 16:52:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 16:52:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:52:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 16:52:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:52:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 16:52:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 16:52:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:52:24] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-29 16:52:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 16:52:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 16:52:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-29 16:52:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:52:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-29 16:52:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:52:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-29 16:52:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-29 16:52:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 16:52:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:53:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 16:53:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 16:53:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 16:53:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 16:53:11] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-29 16:53:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-29 16:53:11] local.DEBUG: Current Balance: 0 [2024-04-29 16:53:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-29 16:53:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:53:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-29 16:53:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:53:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-29 16:53:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-29 16:53:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 16:53:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:53:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 16:53:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:53:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 16:53:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:53:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-29 16:53:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-29 16:53:41] local.DEBUG: Current Balance: 0 [2024-04-29 16:53:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-29 16:53:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:53:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-29 16:53:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:53:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-29 16:53:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-29 16:53:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 16:53:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:55:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 16:55:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 16:55:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 4 [2024-04-29 16:55:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:55:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 6 [2024-04-29 16:55:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:55:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`updated_at` desc limit 5 [2024-04-29 16:55:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `updated_at` desc [2024-04-29 16:55:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 16:55:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:55:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 16:55:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:55:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 16:55:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:55:44] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 16:55:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:55:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 16:55:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 10 [2024-04-29 16:55:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:55:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:55:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:55:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:56:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:56:00] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-29 16:56:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 16:56:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 16:56:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:56:24] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-29 16:56:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:56:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:56:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:56:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:56:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:56:39] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-29 16:56:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:56:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:56:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:56:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 16:56:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 16:57:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:57:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:57:04] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-29 16:57:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 16:57:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:57:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 16:57:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:57:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:57:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:57:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:57:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:57:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:57:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:57:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:57:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:57:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:57:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:57:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:57:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 16:57:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 16:58:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:58:00] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-29 16:58:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:58:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:58:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:58:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:58:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:58:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:58:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:58:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:58:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 16:58:38] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 16:58:44] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:58:44] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-29 16:58:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 16:58:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:58:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 16:58:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:58:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 16:58:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:58:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:58:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:58:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-29 16:58:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 16:58:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:58:51] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 16:58:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:58:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 16:58:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 16:59:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 16:59:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 16:59:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 16:59:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 17:24:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 17:24:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 17:24:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 17:24:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 17:24:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 17:24:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 18:01:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 18:01:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 18:01:19] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 18:01:19] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 18:01:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 18:01:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 18:01:21] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 18:01:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 18:01:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 18:01:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 18:01:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 18:01:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 18:01:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 18:01:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 18:01:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 18:01:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 18:01:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 18:01:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 18:01:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 18:01:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 18:01:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 18:01:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 18:01:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 18:01:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 18:01:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 18:01:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 18:01:29] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 18:01:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 18:01:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 18:01:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 18:01:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 18:01:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 18:01:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 18:01:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 18:01:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 18:01:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 18:02:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 18:02:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 18:02:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 18:02:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 18:02:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 18:02:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 18:02:34] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 18:02:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 20:43:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 20:43:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 20:43:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 20:43:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 20:43:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 20:43:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 23:31:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 23:31:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 23:31:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 23:31:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 23:31:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 23:31:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 23:31:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 23:31:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 23:31:14] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 23:31:14] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 23:31:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 23:31:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 23:31:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 23:31:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 23:32:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 23:32:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 23:32:20] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 23:32:20] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 23:32:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 23:32:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 23:32:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 23:32:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 23:32:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 23:32:45] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 23:32:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 23:32:50] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 23:32:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 23:32:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 23:32:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 23:32:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 23:32:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 23:32:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 23:33:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 23:33:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 23:33:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 23:33:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 23:33:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 23:33:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 23:33:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 23:33:10] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 23:33:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 23:33:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`goal_id` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 23:33:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 23:33:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 23:33:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 23:33:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 23:33:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 23:33:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 23:33:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 23:33:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 23:33:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 23:33:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 23:33:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-02' and `tasks`.`due_by` > '2024-04-29' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-29 23:33:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-29' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-29 23:33:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 23:33:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 23:33:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-29 23:33:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 23:43:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 23:43:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 23:43:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 23:43:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 23:43:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 23:43:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 23:44:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-29 23:44:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 23:44:12] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-29 23:44:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 23:44:16] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-29 23:44:16] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 23:44:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-29 23:44:23] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-29 23:44:23] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_category_id` = ? and (`products`.`expires_on` > '2024-04-28' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-29 23:44:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-29 23:44:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-30 00:50:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 00:50:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 00:50:01] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-30 00:50:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 00:50:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-03' and `tasks`.`due_by` > '2024-04-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-30 00:50:21] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-30 00:53:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 00:53:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 00:53:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-30 00:53:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 01:00:10] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"sparker@volcano.net","name":"Scott Parker"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Scott Parker,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">83093<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-30 01:00:10] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.fe8bd621-068c-11ef-98fd-5254004d4100.18f2c842c7b","object":"email"} [2024-04-30 01:03:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 01:03:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 01:03:35] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-30 01:03:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 01:04:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-30 01:04:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-30 01:04:27] local.DEBUG: Current Balance: 0 [2024-04-30 01:04:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 01:04:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 01:04:33] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-30 01:04:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 04:11:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 04:11:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 04:11:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 04:11:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 04:11:15] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 04:11:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 04:11:18] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-30 04:11:18] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-30 04:11:24] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-30 04:11:24] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-30 04:11:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-30 04:11:41] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-30 04:11:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-30 04:12:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-30 04:12:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-30 04:12:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 04:12:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 04:12:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 04:12:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 04:12:36] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 04:12:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 04:12:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-30 04:12:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 04:12:45] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-30 04:12:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 04:12:48] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-30 04:12:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 05:21:53] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":"info@coinsforcollege.org"},"to":[{"email_address":{"address":"evvywonder12@gmail.com","name":"Evvy Wonder"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Evvy Wonder,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">36735<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey wSsVR6118hCkX6YpyDKrL+gxzFxRAlLwQEQs0FWo43L+GfrL9Mc6wkybVlLxFPJJFGRhF2cUobIoyR8D2mZf3d0sy1EDXCiF9mqRe1U4J3x17qnvhDzNXmxZlBKMKYIBxQ9snGFnFMAg+g==', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-30 05:21:53] local.DEBUG: email sent successfully: {"data":[{"code":"EM_104","additional_info":[],"message":"Email request received"}],"message":"OK","request_id":"2d6f.4d0414f5faee03b5.m1.8e5703a0-06b1-11ef-9d16-525400103106.18f2d73c8da","object":"email"} [2024-04-30 05:36:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 05:36:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 05:36:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-30 05:36:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 05:36:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 05:36:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 05:36:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-30 05:36:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 05:36:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-03' and `tasks`.`due_by` > '2024-04-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-30 05:36:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-30 05:36:51] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-30 05:36:51] local.DEBUG: task visible_to: [2024-04-30 05:37:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-03' and `tasks`.`due_by` > '2024-04-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-30 05:37:05] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-30 05:37:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-30 05:37:06] local.DEBUG: task visible_to: [2024-04-30 05:37:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-03' and `tasks`.`due_by` > '2024-04-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-30 05:37:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-30 05:37:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-30 05:37:13] local.DEBUG: task visible_to: [2024-04-30 05:38:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 05:38:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 05:38:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 05:38:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 05:38:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 05:38:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 05:38:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-30 05:38:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-30 05:39:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-03' and `tasks`.`due_by` > '2024-04-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-30 05:39:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-30 05:39:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-30 05:39:15] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-30 06:39:03] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-30 06:40:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-30 06:40:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-30 06:40:30] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-30 06:40:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-30 06:40:30] local.DEBUG: Current Balance: 0 [2024-04-30 06:40:41] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-30 06:40:41] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-30 07:05:02] local.DEBUG: Tasks to be repeated SQL: select `tasks`.`task_id`, `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where MOD(DATEDIFF(CURRENT_DATE, tasks.created_at), task_settings.repeate_after_days) = 0 and `tasks`.`is_repeated` = ? and `tasks`.`due_by` >= CURRENT_DATE and `tasks`.`deleted_at` is null [2024-04-30 07:05:02] local.ERROR: Error while clonning tasks and associated rewards, rolling back the transaction. Message: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'created_by' in 'field list' (SQL: insert into `task_assigned` (`user_id`, `task_id`, `group_id`, `status`, `task_details_for_approval`, `deleted_at`, `created_by`, `updated_at`, `created_at`) values (220, 281, 76, PENDING, ?, ?, ?, 2024-04-30 07:05:02, 2024-04-30 07:05:02)) [2024-04-30 07:05:02] local.ERROR: #0 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback() #1 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(546): Illuminate\Database\Connection->run() #2 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php(498): Illuminate\Database\Connection->statement() #3 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert() #4 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3322): Illuminate\Database\Query\Processors\Processor->processInsertGetId() #5 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1869): Illuminate\Database\Query\Builder->insertGetId() #6 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1330): Illuminate\Database\Eloquent\Builder->__call() #7 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1295): Illuminate\Database\Eloquent\Model->insertAndSetId() #8 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert() #9 /home/o5t6x7pgljbm/public_html/admin/app/Models/TaskAssigned.php(82): Illuminate\Database\Eloquent\Model->save() #10 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(466): App\Models\TaskAssigned->cloneTaskAssignee() #11 /home/o5t6x7pgljbm/public_html/admin/app/V2/Services/TaskService.php(410): App\V2\Services\TaskService->cloneTaskAndReward() #12 /home/o5t6x7pgljbm/public_html/admin/app/Http/Controllers/Api/V2/V2CronController.php(37): App\V2\Services\TaskService->cloneTasksAndRewards() #13 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\V2\V2CronController->create_repeate_tasks() #14 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #15 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch() #16 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #17 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #18 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}() #19 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #20 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle() #21 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #22 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(102): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest() #23 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(54): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() #24 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\ThrottleRequests->handle() #25 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #26 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then() #27 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack() #28 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute() #29 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute() #30 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch() #31 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}() #32 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #33 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #34 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle() #35 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #36 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle() #37 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle() #38 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #39 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() #40 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #41 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #42 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #43 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle() #44 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #45 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle() #46 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}() #47 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then() #48 /home/o5t6x7pgljbm/public_html/admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #49 /home/o5t6x7pgljbm/public_html/admin/index.php(52): Illuminate\Foundation\Http\Kernel->handle() #50 {main} [2024-04-30 07:09:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-30 07:09:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-30 09:16:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 09:16:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 09:16:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-30 09:16:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 09:17:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 09:17:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 09:17:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 09:17:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 09:17:13] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 09:17:13] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 09:17:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-30 09:17:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-30 09:17:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 09:17:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 09:17:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 09:17:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 09:17:46] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 09:17:46] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 09:17:49] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-30 09:17:49] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-30 09:18:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 09:18:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 09:18:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 09:18:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 09:18:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 09:18:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 09:21:06] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-30 09:21:06] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-30 09:26:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 09:26:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 09:26:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 09:26:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 09:26:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 09:26:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 09:28:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 09:28:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 09:28:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 09:28:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 09:28:53] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 09:28:53] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 09:36:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 09:36:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 09:36:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 09:36:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 09:36:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 09:36:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 09:36:58] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-30 09:36:58] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-30 09:37:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 09:37:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 09:37:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 09:37:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 09:37:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 09:37:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 09:37:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-30 09:37:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-30 10:05:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 10:05:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 10:05:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 10:05:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 10:05:32] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 10:05:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 10:05:52] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-30 10:05:52] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-30 10:10:07] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-30 10:10:07] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-30 10:10:07] local.DEBUG: Current Balance: 0 [2024-04-30 10:14:12] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-30 10:17:48] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-30 10:17:48] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-30 10:27:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 10:27:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 10:27:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 10:27:55] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 10:27:55] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 10:27:56] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 10:27:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-03' and `tasks`.`due_by` > '2024-04-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-30 10:27:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-30 10:27:59] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-30 10:28:01] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-30 10:28:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-03' and `tasks`.`due_by` > '2024-04-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-30 10:28:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-30 10:28:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-30 10:28:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-30 10:28:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-03' and `tasks`.`due_by` > '2024-04-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-30 10:28:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-30 10:28:11] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?) or (`task_settings`.`visible_to` in (?, ?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-30 10:28:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 10:28:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 10:28:25] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-30 10:28:25] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 10:28:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-03' and `tasks`.`due_by` > '2024-04-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-30 10:28:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-30 10:28:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-30 10:28:28] local.DEBUG: task visible_to: [2024-04-30 10:28:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-03' and `tasks`.`due_by` > '2024-04-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-30 10:28:29] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-30 10:28:30] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-30 10:28:30] local.DEBUG: task visible_to: [2024-04-30 10:28:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-03' and `tasks`.`due_by` > '2024-04-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-30 10:28:32] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-30 10:28:33] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-30 10:28:33] local.DEBUG: task visible_to: [2024-04-30 10:28:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-03' and `tasks`.`due_by` > '2024-04-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-30 10:28:34] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-30 10:28:35] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`task_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-30 10:28:35] local.DEBUG: task visible_to: GLOBAL_FOR_PARENT_AND_CHILD [2024-04-30 10:28:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and `tasks`.`due_by` <= '2024-05-03' and `tasks`.`due_by` > '2024-04-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 12 [2024-04-30 10:28:36] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) left join `task_assigned` on `tasks`.`task_id` = `task_assigned`.`task_id` and `task_assigned`.`user_id` = ? where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and (`task_assigned`.`user_id` is not null or (`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` is null) or (`task_settings`.`visible_to` in (?, ?))) and (`tasks`.`due_by` > '2024-04-30' or `tasks`.`due_by` is null) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `due_by` asc limit 15 [2024-04-30 10:28:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 10:28:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 10:28:37] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-30 10:28:37] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 10:28:39] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-30 10:28:39] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-30 10:28:39] local.DEBUG: Current Balance: 100 [2024-04-30 10:28:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 10:28:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 10:28:40] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-30 10:28:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 10:28:42] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`product_id` in (?) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`product_id` desc limit 10 [2024-04-30 10:28:42] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc [2024-04-30 10:28:42] local.DEBUG: Current Balance: 100 [2024-04-30 10:28:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 10:28:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 10:28:43] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?)) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 20 [2024-04-30 10:28:43] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 10:29:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 10:29:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 10:29:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 10:29:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 10:29:02] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?) or (`reward_settings`.`visible_to` in (?, ?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 10:29:02] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 15:46:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 15:46:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 15:46:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 15:46:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 15:46:22] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 15:46:22] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 17:47:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 17:47:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 17:47:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 17:47:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 17:47:28] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 17:47:28] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 21:13:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 21:13:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 21:13:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 21:13:08] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 21:13:08] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 21:13:09] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 21:16:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 21:16:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 21:16:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 21:16:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 21:16:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 21:16:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 21:16:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-30 21:16:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 21:16:27] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-30 21:16:27] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 21:16:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 21:16:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 21:16:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 21:16:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 21:16:31] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 21:16:31] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 21:16:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`due_by` <= '2024-05-03' and `tasks`.`due_by` > '2024-04-30' and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-30 21:16:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`is_featured` = ? and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-30 21:16:40] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 10 [2024-04-30 21:16:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 21:16:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 21:16:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 21:16:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 21:16:47] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 21:16:47] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 21:17:40] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":null},"to":[{"email_address":{"address":"haleybiale@gmail.com","name":"Haley Biale"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Haley Biale,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">11107<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey ', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-30 21:17:40] local.ERROR: failure in sending email: array ( 'code' => 'TM_4001', 'details' => array ( 0 => array ( 'code' => 'SERR_157', 'message' => 'Invalid API Token found', ), ), 'message' => 'Access Denied', ) [2024-04-30 21:17:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 21:17:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 21:17:54] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 10 [2024-04-30 21:17:54] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 21:17:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 21:17:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 21:17:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 21:17:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 21:17:57] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 21:17:57] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 21:18:00] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` left join `task_visibility` on `task_visibility`.`task_settings_id` = `task_settings`.`task_settings_id` and ((`task_settings`.`visible_to` in (?) and `task_visibility`.`entity_type` = ? and `task_visibility`.`entity_value` = ?)) where (`tasks`.`group_id` = ? or (`task_settings`.`visible_to` in (?, ?, ?, ?, ?, ?))) and `tasks`.`product_id` is null and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `task_id` desc limit 100 [2024-04-30 21:18:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 21:18:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 21:18:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 21:18:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 21:18:04] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-29' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-04-30 21:18:04] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-04-30 21:19:03] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":null},"to":[{"email_address":{"address":"haleybiale@gmail.com","name":"Haley Biale"}}],"subject":"Resend Verification Code - Coins for College","htmlbody":"<!-- otp_email_template.blade.php -->\\n<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>OTP Email<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>OTP Verification<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your verification code is: <strong>97877<\\/strong><\\/p>\\n <p>Please use this code to complete the verification process.<\\/p>\\n <p>If you did not request this verification or have any concerns, please contact our support team immediately.<\\/p>\\n <p>Thank you for choosing Coins For College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins For College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey ', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-04-30 21:19:04] local.ERROR: failure in sending email: array ( 'code' => 'TM_4001', 'details' => array ( 0 => array ( 'code' => 'SERR_157', 'message' => 'Invalid API Token found', ), ), 'message' => 'Access Denied', ) [2024-05-01 00:08:24] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":null},"to":[{"email_address":{"address":"robertwilliams0824@gmail.com","name":"Robert Lawrence Williams Jr"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Robert Lawrence Williams Jr,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">65981<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey ', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-01 00:08:24] local.ERROR: failure in sending email: array ( 'code' => 'TM_4001', 'details' => array ( 0 => array ( 'code' => 'SERR_157', 'message' => 'Invalid API Token found', ), ), 'message' => 'Access Denied', ) [2024-05-01 00:11:24] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":null},"to":[{"email_address":{"address":"robertwilliams0824@gmail.com","name":"Robert Lawrence Williams Jr"}}],"subject":"Resend Verification Code - Coins for College","htmlbody":"<!-- otp_email_template.blade.php -->\\n<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>OTP Email<\\/title>\\n<\\/head>\\n<body style=\\"font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>OTP Verification<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello,<\\/p>\\n <p>Your verification code is: <strong>41377<\\/strong><\\/p>\\n <p>Please use this code to complete the verification process.<\\/p>\\n <p>If you did not request this verification or have any concerns, please contact our support team immediately.<\\/p>\\n <p>Thank you for choosing Coins For College.<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins For College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey ', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-01 00:11:25] local.ERROR: failure in sending email: array ( 'code' => 'TM_4001', 'details' => array ( 0 => array ( 'code' => 'SERR_157', 'message' => 'Invalid API Token found', ), ), 'message' => 'Access Denied', ) [2024-05-01 00:27:12] local.DEBUG: Token:array ( 10002 => 'https://api.zeptomail.com/v1.1/email', 19913 => true, 10102 => '', 68 => 10, 13 => 30, 32 => 6, 84 => 2, 10036 => 'POST', 10015 => '{"from":{"address":null},"to":[{"email_address":{"address":"mike.james.mj@gmail.com","name":"Michael James"}}],"subject":"Signup - Coins for College","htmlbody":"<!DOCTYPE html>\\n<html lang=\\"en\\">\\n<head>\\n <meta charset=\\"UTF-8\\">\\n <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\">\\n <title>Welcome to Coins for College<\\/title>\\n <link href=\'https:\\/\\/fonts.googleapis.com\\/css?family=Poppins\' rel=\'stylesheet\'>\\n<\\/head>\\n<body style=\\"font-family: Poppins; background-color: #f4f4f4; padding: 20px;\\">\\n\\n <div style=\\"max-width: 600px; margin: 0 auto; background-color: #fff; border-radius: 10px; overflow: hidden;\\">\\n\\n <!-- Header -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 20px;\\">\\n <h2>Welcome to Coins for College<\\/h2>\\n <\\/div>\\n\\n <!-- Content -->\\n <div style=\\"padding: 20px;\\">\\n <p>Hello Michael James,<\\/p>\\n <p>Please use this code to verify your account.<\\/p>\\n <h2 style=\\"background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: inline-block;\\">79863<\\/h2>\\n <p>If you have any questions or need assistance, feel free to reach out to our support team at info@coinsforcollege.org<\\/p>\\n <\\/div>\\n\\n <!-- Footer -->\\n <div style=\\"background-color: #3498db; color: #fff; text-align: center; padding: 10px;\\">\\n <p>© 2023 Coins for College. All rights reserved.<\\/p>\\n <\\/div>\\n\\n <\\/div>\\n\\n<\\/body>\\n<\\/html>\\n"}', 10023 => array ( 0 => 'accept: application/json', 1 => 'authorization:Zoho-enczapikey ', 2 => 'cache-control: no-cache', 3 => 'content-type: application/json', ), ) [2024-05-01 00:27:12] local.ERROR: failure in sending email: array ( 'code' => 'TM_4001', 'details' => array ( 0 => array ( 'code' => 'SERR_157', 'message' => 'Invalid API Token found', ), ), 'message' => 'Access Denied', ) [2024-05-01 00:28:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`created_by` in (?) and (`products`.`expires_on` > '2024-04-30' or `products`.`expires_on` is null) and `products`.`deleted_at` is null group by `products`.`product_id` order by `products`.`created_at` desc limit 12 [2024-05-01 00:28:26] local.DEBUG: Task Sql:select `tasks`.* from `tasks` left join `task_settings` on `tasks`.`task_id` = `task_settings`.`task_id` where `tasks`.`product_id` in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and `tasks`.`deleted_at` is null group by `tasks`.`task_id` order by `created_at` desc [2024-05-01 00:28:26] local.DEBUG: SQL to get Rewards: select `products`.* from `products` left join `store_product` on `store_product`.`product_id` = `products`.`product_id` left join `reward_settings` on `reward_settings`.`reward_id` = `products`.`product_id` left join `reward_visibility` on `reward_visibility`.`reward_settings_id` = `reward_settings`.`reward_settings_id` where (`store_product`.`store_id` = ? or `products`.`product_type` = ? or `reward_settings`.`visible_to` in (?, ?, ?) or (`reward_settings`.`visible_to` in (?) and `reward_visibility`.`entity_type` = ? and `reward_visibility`.`entity_value` = ?)) and `products`.`is_featured` = ? and `products`.`created_by` in (?, ?) and (`products`.`expires_on` > '2024-04-30'